diff options
| author | Marek Vasut <[email protected]> | 2026-05-08 14:22:08 +0200 |
|---|---|---|
| committer | Peng Fan <[email protected]> | 2026-05-15 11:47:22 +0800 |
| commit | 4f87439ed46ef860cf886875d0c23fdaa60d7b43 (patch) | |
| tree | 97862ec0ec055a916ecb266bc1b2ad08d192da53 /drivers | |
| parent | ad9ca3e7766310b20dde93826b05b42b4f0ab43f (diff) | |
power: domain: meson-gx-pwrc: 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/meson-gx-pwrc-vpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/domain/meson-gx-pwrc-vpu.c b/drivers/power/domain/meson-gx-pwrc-vpu.c index 1c56e8508c3..325296b0dd7 100644 --- a/drivers/power/domain/meson-gx-pwrc-vpu.c +++ b/drivers/power/domain/meson-gx-pwrc-vpu.c @@ -262,7 +262,7 @@ static int meson_pwrc_vpu_of_xlate(struct power_domain *power_domain, return 0; } -struct power_domain_ops meson_gx_pwrc_vpu_ops = { +static const struct power_domain_ops meson_gx_pwrc_vpu_ops = { .off = meson_pwrc_vpu_off, .on = meson_pwrc_vpu_on, .of_xlate = meson_pwrc_vpu_of_xlate, |
