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

index 5851e1ef15e9a9608b92bcf5592578e579ee0733..ce576c0b282b5c9603945fe961687b12bfec8915 100644 (file)
@@ -15,7 +15,7 @@ static int ptn3460_attach(struct udevice *dev)
        return video_bridge_set_active(dev, true);
 }
 
-struct video_bridge_ops ptn3460_ops = {
+static const struct video_bridge_ops ptn3460_ops = {
        .attach = ptn3460_attach,
 };