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

index efd03752281c90cb710ad4f45596f16928f4fe53..a08227f83556a3ae7903a31fafcd746eba229eb0 100644 (file)
@@ -116,7 +116,7 @@ static int ps8622_probe(struct udevice *dev)
        return 0;
 }
 
-struct video_bridge_ops ps8622_ops = {
+static const struct video_bridge_ops ps8622_ops = {
        .attach = ps8622_attach,
        .set_backlight = ps8622_set_backlight,
 };