]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
power: domain: zynqmp: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 8 May 2026 12:22:14 +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: Michal Simek <michal.simek@amd.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/power/domain/zynqmp-power-domain.c

index a54de5c1439c68b4f44b0c20db020fe2fe865c92..0acfc54e787cb7608d041740acd08e666a654bad 100644 (file)
@@ -57,7 +57,7 @@ static int zynqmp_power_domain_off(struct power_domain *power_domain)
        return 0;
 }
 
-struct power_domain_ops zynqmp_power_domain_ops = {
+static const struct power_domain_ops zynqmp_power_domain_ops = {
        .request = zynqmp_power_domain_request,
        .rfree = zynqmp_power_domain_free,
        .on = zynqmp_power_domain_on,