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 <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>
This commit is contained in:
Marek Vasut
2026-05-10 19:17:04 +02:00
committed by Tom Rini
parent 7e7b3106a5
commit dd2f4d967f

View 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,
};