]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
video: imx: ldb: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 10 May 2026 17:17:03 +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/imx/ldb.c

index e918341c0a32232f0fc45aba8eb77a290064590c..32a327647f8bc12792170345b715115e31025b75 100644 (file)
@@ -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,
 };