]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
video: tda19988: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 10 May 2026 17:17:05 +0000 (19:17 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 29 May 2026 23:10:46 +0000 (17:10 -0600)
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: Simon Glass <sjg@chromium.org>
drivers/video/tda19988.c

index ebc8521c6edd811687006a69ad9240ee7dd4c5d0..a4cc3a492329f8cb22cdce5c50db7c543e994cbd 100644 (file)
@@ -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,
 };