diff options
| author | Marek Vasut <[email protected]> | 2026-05-08 14:22:05 +0200 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2026-05-15 11:47:22 +0800 |
| commit | 10c5b89e217e114f6dc57933ddbb269e4b708eed (patch) | |
| tree | 5e83e9bfb92f7da02158c1c6b11927430478c905 /drivers/power | |
| parent | 77a8a30ef8b64b239afa3e4c04e606c51cfc56e9 (diff) | |
power: domain: imx8m: 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/power')
| -rw-r--r-- | drivers/power/domain/imx8m-power-domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c index 1c731b897cc..5fdb95fb6a7 100644 --- a/drivers/power/domain/imx8m-power-domain.c +++ b/drivers/power/domain/imx8m-power-domain.c @@ -558,7 +558,7 @@ static const struct udevice_id imx8m_power_domain_ids[] = { { } }; -struct power_domain_ops imx8m_power_domain_ops = { +static const struct power_domain_ops imx8m_power_domain_ops = { .on = imx8m_power_domain_on, .off = imx8m_power_domain_off, .of_xlate = imx8m_power_domain_of_xlate, |
