[PATCH 6/6] mailbox: stm32-ipcc: Staticize and constify driver ops

Patrice CHOTARD patrice.chotard at foss.st.com
Mon May 11 08:42:46 CEST 2026



On 5/8/26 00:06, Marek Vasut wrote:
> 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: Patrice Chotard <patrice.chotard at foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: u-boot at lists.denx.de
> Cc: uboot-stm32 at st-md-mailman.stormreply.com
> ---
>  drivers/mailbox/stm32-ipcc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mailbox/stm32-ipcc.c b/drivers/mailbox/stm32-ipcc.c
> index dda108735fc..49f7795b3cd 100644
> --- a/drivers/mailbox/stm32-ipcc.c
> +++ b/drivers/mailbox/stm32-ipcc.c
> @@ -147,7 +147,7 @@ static const struct udevice_id stm32_ipcc_ids[] = {
>  	{ }
>  };
>  
> -struct mbox_ops stm32_ipcc_mbox_ops = {
> +static const struct mbox_ops stm32_ipcc_mbox_ops = {
>  	.request = stm32_ipcc_request,
>  	.rfree = stm32_ipcc_free,
>  	.send = stm32_ipcc_send,

Hi Marek

Reviewed-by: Patrice Chotard <patrice.chotard at foss.st.com>

Thanks
Patrice


More information about the U-Boot mailing list