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 <[email protected]>
---
Cc: Anatolij Gustschin <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
 drivers/video/bridge/anx6345.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/bridge/anx6345.c b/drivers/video/bridge/anx6345.c
index 8cee4c958bd..a5d2781aa48 100644
--- a/drivers/video/bridge/anx6345.c
+++ b/drivers/video/bridge/anx6345.c
@@ -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,
-- 
2.53.0

Reply via email to