mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
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:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user