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

index 4d9f3bba644c432e87c55bd56349a7c079fd5cc2..6361f3a6c59578fbb03b1442f9a793b0c3a82273 100644 (file)
@@ -386,7 +386,7 @@ static int meson_ee_pwrc_of_xlate(struct power_domain *power_domain,
        return 0;
 }
 
-struct power_domain_ops meson_ee_pwrc_ops = {
+static const struct power_domain_ops meson_ee_pwrc_ops = {
        .off = meson_ee_pwrc_off,
        .on = meson_ee_pwrc_on,
        .of_xlate = meson_ee_pwrc_of_xlate,