diff options
| author | Marek Vasut <[email protected]> | 2026-05-08 14:22:12 +0200 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2026-05-15 11:47:23 +0800 |
| commit | 1aea809ba2da6ad3af16d50166d94b7b376e017c (patch) | |
| tree | 8cb7eae29aa1a93f191178fe280de786ffc4a956 | |
| parent | d82d49e1a6d10d7e92dd8448429f2c2e2c8af2c4 (diff) | |
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 <[email protected]>
Reviewed-by: Peng Fan <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
| -rw-r--r-- | drivers/power/domain/scmi-power-domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/domain/scmi-power-domain.c b/drivers/power/domain/scmi-power-domain.c index e8c0ba8878e..6dcc259ad8f 100644 --- a/drivers/power/domain/scmi-power-domain.c +++ b/drivers/power/domain/scmi-power-domain.c @@ -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, }; |
