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

index c74fe678d12a5615ffaad4e14b371a8d45225da6..ec5d4c8181239f9b4d1e78aaec5b2e05ca138a88 100644 (file)
@@ -837,7 +837,7 @@ static int dw_mipi_dsi_enable(struct udevice *dev)
        return 0;
 }
 
-struct dsi_host_ops dw_mipi_dsi_ops = {
+static const struct dsi_host_ops dw_mipi_dsi_ops = {
        .init = dw_mipi_dsi_init,
        .enable = dw_mipi_dsi_enable,
 };