]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
reset: tegra186: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 9 May 2026 15:12:37 +0000 (17:12 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 18 May 2026 22:56:07 +0000 (16:56 -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>
drivers/reset/tegra186-reset.c

index 89624227c29383346eb366ec5802cb6fd6c05977..1d8f40acaef4b5a0a0003b1698dc7b7040910864 100644 (file)
@@ -43,7 +43,7 @@ static int tegra186_reset_deassert(struct reset_ctl *reset_ctl)
        return tegra186_reset_common(reset_ctl, CMD_RESET_DEASSERT);
 }
 
-struct reset_ops tegra186_reset_ops = {
+static const struct reset_ops tegra186_reset_ops = {
        .rst_assert = tegra186_reset_assert,
        .rst_deassert = tegra186_reset_deassert,
 };