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

index 1c56e8508c3231549a3e829dd0dcfeb0f3cd1d6f..325296b0dd7bc23900800397ec10d9e140ad3652 100644 (file)
@@ -262,7 +262,7 @@ static int meson_pwrc_vpu_of_xlate(struct power_domain *power_domain,
        return 0;
 }
 
-struct power_domain_ops meson_gx_pwrc_vpu_ops = {
+static const struct power_domain_ops meson_gx_pwrc_vpu_ops = {
        .off = meson_pwrc_vpu_off,
        .on = meson_pwrc_vpu_on,
        .of_xlate = meson_pwrc_vpu_of_xlate,