]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
video: tegra: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 10 May 2026 17:17:06 +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>
Acked-by: Svyatoslav Ryhel <clamor95@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/video/tegra/dsi.c

index bc308869f4ebf655ef40261a7f663e1713a626ed..f53fabf6fd60bdf14a8fea0a3f960fb96db40929 100644 (file)
@@ -337,7 +337,7 @@ static ssize_t tegra_dsi_host_transfer(struct mipi_dsi_host *host,
        return count;
 }
 
-struct mipi_dsi_host_ops tegra_dsi_bridge_host_ops = {
+static const struct mipi_dsi_host_ops tegra_dsi_bridge_host_ops = {
        .transfer       = tegra_dsi_host_transfer,
 };