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

index e8c0ba8878ed463ab64eb3d14ed3d024c8ae5674..6dcc259ad8f63bab5191ff7adb04344539da47ed 100644 (file)
@@ -179,7 +179,7 @@ static int scmi_power_domain_probe(struct udevice *dev)
        return 0;
 }
 
-struct power_domain_ops scmi_power_domain_ops = {
+static const struct power_domain_ops scmi_power_domain_ops = {
        .on = scmi_power_domain_on,
        .off = scmi_power_domain_off,
 };