[PATCH 10/11] video: tda19988: Staticize and constify driver ops

Marek Vasut marek.vasut+renesas at mailbox.org
Sun May 10 19:17:05 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: Liviu Dudau <liviu.dudau at foss.arm.com>
Cc: Tom Rini <trini at konsulko.com>
Cc: u-boot at lists.denx.de
---
 drivers/video/tda19988.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/tda19988.c b/drivers/video/tda19988.c
index ebc8521c6ed..a4cc3a49232 100644
--- a/drivers/video/tda19988.c
+++ b/drivers/video/tda19988.c
@@ -522,7 +522,7 @@ static int tda19988_enable(struct udevice *dev, int panel_bpp,
 	return 0;
 }
 
-struct dm_display_ops tda19988_ops = {
+static const struct dm_display_ops tda19988_ops = {
 	.read_edid = tda19988_read_edid,
 	.enable = tda19988_enable,
 };
-- 
2.53.0



More information about the U-Boot mailing list