]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
power: domain: meson-secure-pwrc: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 8 May 2026 12:22:09 +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-secure-pwrc.c

index f70f8e024239528eb627d9202f6a31516079ad91..1b82b58f3e587f9816af20eca6f05c196ef15bff 100644 (file)
@@ -120,7 +120,7 @@ static struct meson_secure_pwrc_domain_desc a1_pwrc_domains[] = {
        SEC_PD(RSA),
 };
 
-struct power_domain_ops meson_secure_pwrc_ops = {
+static const struct power_domain_ops meson_secure_pwrc_ops = {
        .on = meson_secure_pwrc_on,
        .off = meson_secure_pwrc_off,
        .of_xlate = meson_secure_pwrc_of_xlate,