video: bridge: ptn3460: Staticize and constify driver ops
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>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user