diff options
| author | Marek Vasut <[email protected]> | 2026-05-08 14:22:04 +0200 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2026-05-15 11:47:22 +0800 |
| commit | 77a8a30ef8b64b239afa3e4c04e606c51cfc56e9 (patch) | |
| tree | af0e883a24f248a196d848527d38a518688ab7c1 | |
| parent | 2e8078e5d545cb09933e95f692a57a70fcc6091c (diff) | |
power: domain: imx8: 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/imx8-power-domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/domain/imx8-power-domain.c b/drivers/power/domain/imx8-power-domain.c index e8dcc057fee..5740cd686db 100644 --- a/drivers/power/domain/imx8-power-domain.c +++ b/drivers/power/domain/imx8-power-domain.c @@ -51,7 +51,7 @@ static const struct udevice_id imx8_power_domain_ids[] = { { } }; -struct power_domain_ops imx8_power_domain_ops_v2 = { +static const struct power_domain_ops imx8_power_domain_ops_v2 = { .on = imx8_power_domain_on, .off = imx8_power_domain_off, }; |
