diff options
| author | Marek Vasut <[email protected]> | 2026-05-10 19:17:04 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-05-29 17:10:46 -0600 |
| commit | dd2f4d967f12b896ff976b3b21311c1000aece2a (patch) | |
| tree | 94cbf8f151ab70af3b3cf52c8d2ef3b02d5b9300 /drivers/video | |
| parent | 7e7b3106a50b72ab78e28f81e9ab9f96817b5e47 (diff) | |
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 <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Raphaƫl Gallais-Pou <[email protected]>
Diffstat (limited to 'drivers/video')
| -rw-r--r-- | drivers/video/stm32/stm32_dsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, }; |
