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

Mark Kettenis mark.kettenis at xs4all.nl
Fri May 8 00:14:29 CEST 2026


> From: Marek Vasut <marek.vasut+renesas at mailbox.org>
> Date: Fri,  8 May 2026 00:06:28 +0200
> 
> 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>

Acked-by: Mark Kettenis <kettenis at openbsd.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