diff options
| author | Marek Vasut <[email protected]> | 2026-05-08 14:22:03 +0200 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2026-05-15 11:47:21 +0800 |
| commit | 2e8078e5d545cb09933e95f692a57a70fcc6091c (patch) | |
| tree | 37d0fa9ed73ad0afad6e76a1295241dffd3d438a /drivers | |
| parent | e6c69731c988238e4f55d046b9c500dce8f89698 (diff) | |
power: domain: imx8-legacy: 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]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/power/domain/imx8-power-domain-legacy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/domain/imx8-power-domain-legacy.c b/drivers/power/domain/imx8-power-domain-legacy.c index 713a51d7807..a646f667039 100644 --- a/drivers/power/domain/imx8-power-domain-legacy.c +++ b/drivers/power/domain/imx8-power-domain-legacy.c @@ -347,7 +347,7 @@ static const struct udevice_id imx8_power_domain_ids[] = { { } }; -struct power_domain_ops imx8_power_domain_ops = { +static const struct power_domain_ops imx8_power_domain_ops = { .on = imx8_power_domain_on, .off = imx8_power_domain_off, .of_xlate = imx8_power_domain_of_xlate, |
