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

index 8cee4c958bd8f17a97be9a738cce7127ec67328b..a5d2781aa486b4f071c4ddd4b0a40ccce7888cf2 100644 (file)
@@ -403,7 +403,7 @@ static int anx6345_probe(struct udevice *dev)
        return anx6345_enable(dev);
 }
 
-struct video_bridge_ops anx6345_ops = {
+static const struct video_bridge_ops anx6345_ops = {
        .attach = anx6345_attach,
        .set_backlight = anx6345_set_backlight,
        .read_edid = anx6345_read_edid,