U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/6] mailbox: apple: Staticize and constify driver ops
@ 2026-05-07 22:06 Marek Vasut
  2026-05-07 22:06 ` [PATCH 2/6] mailbox: imx: " Marek Vasut
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Marek Vasut @ 2026-05-07 22:06 UTC (permalink / raw)
  To: u-boot; +Cc: Marek Vasut, Tom Rini

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>
---
Cc: Tom Rini <trini@konsulko.com>
Cc: u-boot@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


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-05-13 11:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-07 22:06 [PATCH 1/6] mailbox: apple: Staticize and constify driver ops Marek Vasut
2026-05-07 22:06 ` [PATCH 2/6] mailbox: imx: " Marek Vasut
2026-05-13 11:05   ` Peng Fan
2026-05-07 22:06 ` [PATCH 3/6] mailbox: k3-sec-proxy: " Marek Vasut
2026-05-07 22:06 ` [PATCH 4/6] mailbox: renesas: " Marek Vasut
2026-05-07 22:06 ` [PATCH 5/6] mailbox: sandbox: " Marek Vasut
2026-05-07 22:06 ` [PATCH 6/6] mailbox: stm32-ipcc: " Marek Vasut
2026-05-11  6:42   ` Patrice CHOTARD
2026-05-07 22:14 ` [PATCH 1/6] mailbox: apple: " Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox