mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
mailbox: imx: Staticize and constify driver ops
Set the ops structure as static const. The structure is not accessible from outside of this driver and is not going to be modified at runtime. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
@@ -387,7 +387,7 @@ int imx_mu_of_xlate(struct mbox_chan *chan, struct ofnode_phandle_args *args)
|
||||
return plat->dcfg->of_xlate(chan, args);
|
||||
}
|
||||
|
||||
struct mbox_ops imx_mu_ops = {
|
||||
static const struct mbox_ops imx_mu_ops = {
|
||||
.of_xlate = imx_mu_of_xlate,
|
||||
.request = imx_mu_chan_request,
|
||||
.rfree = imx_mu_chan_free,
|
||||
|
||||
Reference in New Issue
Block a user