summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2026-05-08 00:06:29 +0200
committerTom Rini <[email protected]>2026-05-18 16:56:07 -0600
commit44f6ca49e9d3c1c7bc77139fbb3968afd587f891 (patch)
tree3f153dc1f832c779370f24d9b267c78c9e9fbd62 /drivers
parent499cb93dec85fbdff60c3a6c626db46caccc24e6 (diff)
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 <[email protected]> Reviewed-by: Peng Fan <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mailbox/imx-mailbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mailbox/imx-mailbox.c b/drivers/mailbox/imx-mailbox.c
index c7eaa3de96f..fd0fce21d78 100644
--- a/drivers/mailbox/imx-mailbox.c
+++ b/drivers/mailbox/imx-mailbox.c
@@ -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,