[PATCH 1/6] mailbox: apple: Staticize and constify driver ops

Marek Vasut marek.vasut+renesas at mailbox.org
Fri May 8 00:06:28 CEST 2026


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 at mailbox.org>
---
Cc: Tom Rini <trini at konsulko.com>
Cc: u-boot at lists.denx.de
---
 drivers/mailbox/apple-mbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mailbox/apple-mbox.c b/drivers/mailbox/apple-mbox.c
index 2ee49734f40..39a7edc0285 100644
--- a/drivers/mailbox/apple-mbox.c
+++ b/drivers/mailbox/apple-mbox.c
@@ -59,7 +59,7 @@ static int apple_mbox_recv(struct mbox_chan *chan, void *data)
 	return 0;
 }
 
-struct mbox_ops apple_mbox_ops = {
+static const struct mbox_ops apple_mbox_ops = {
 	.of_xlate = apple_mbox_of_xlate,
 	.send = apple_mbox_send,
 	.recv = apple_mbox_recv,
-- 
2.53.0



More information about the U-Boot mailing list