[PATCH 08/11] video: imx: ldb: Staticize and constify driver ops

Marek Vasut marek.vasut+renesas at mailbox.org
Sun May 10 19:17:03 CEST 2026


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 at mailbox.org>
---
Cc: Anatolij Gustschin <ag.dev.uboot at gmail.com>
Cc: Tom Rini <trini at konsulko.com>
Cc: u-boot at lists.denx.de
---
 drivers/video/imx/ldb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/imx/ldb.c b/drivers/video/imx/ldb.c
index e918341c0a3..32a327647f8 100644
--- a/drivers/video/imx/ldb.c
+++ b/drivers/video/imx/ldb.c
@@ -230,7 +230,7 @@ dis_clk:
 	return ret;
 }
 
-struct video_bridge_ops imx_ldb_ops = {
+static const struct video_bridge_ops imx_ldb_ops = {
 	.attach = imx_ldb_attach,
 	.set_backlight	= imx_ldb_set_backlight,
 };
-- 
2.53.0



More information about the U-Boot mailing list