]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
video: stm32: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 10 May 2026 17:17:04 +0000 (19:17 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 29 May 2026 23:10:46 +0000 (17:10 -0600)
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>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Raphaƫl Gallais-Pou <rgallaispou@gmail.com>
drivers/video/stm32/stm32_dsi.c

index 5c4d8d2aab515787cc58e95a04e3ccbba668db67..29c57a4ff8955e3d4c9ad5775503086cae812e4a 100644 (file)
@@ -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,
 };