power: domain: scmi: Staticize and constify driver ops

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>
This commit is contained in:
Marek Vasut
2026-05-08 14:22:12 +02:00
committed by Peng Fan
parent d82d49e1a6
commit 1aea809ba2

View 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,
};