]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
power: domain: tegra186: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 8 May 2026 12:22:13 +0000 (14:22 +0200)
committerPeng Fan <peng.fan@nxp.com>
Fri, 15 May 2026 03:47:23 +0000 (11:47 +0800)
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: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/power/domain/tegra186-power-domain.c

index 334c460c805f6fdc16948041b664267fd823020f..3865cd4cf479289219e00473c6d443903164568a 100644 (file)
@@ -55,7 +55,7 @@ static int tegra186_power_domain_off(struct power_domain *power_domain)
        return tegra186_power_domain_common(power_domain, false);
 }
 
-struct power_domain_ops tegra186_power_domain_ops = {
+static const struct power_domain_ops tegra186_power_domain_ops = {
        .on = tegra186_power_domain_on,
        .off = tegra186_power_domain_off,
 };