From: Marek Vasut Date: Sun, 10 May 2026 17:17:04 +0000 (+0200) Subject: video: stm32: Staticize and constify driver ops X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dd2f4d967f12b896ff976b3b21311c1000aece2a;p=thirdparty%2Fu-boot.git video: stm32: 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 Reviewed-by: Patrice Chotard Reviewed-by: Simon Glass Reviewed-by: Raphaƫl Gallais-Pou --- diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c index 5c4d8d2aab5..29c57a4ff89 100644 --- a/drivers/video/stm32/stm32_dsi.c +++ b/drivers/video/stm32/stm32_dsi.c @@ -511,7 +511,7 @@ err_reg: return ret; } -struct video_bridge_ops stm32_dsi_ops = { +static const struct video_bridge_ops stm32_dsi_ops = { .attach = stm32_dsi_attach, .set_backlight = stm32_dsi_set_backlight, };