mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
power: domain: meson-ee-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 <marek.vasut+renesas@mailbox.org> Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
@@ -386,7 +386,7 @@ static int meson_ee_pwrc_of_xlate(struct power_domain *power_domain,
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct power_domain_ops meson_ee_pwrc_ops = {
|
||||
static const struct power_domain_ops meson_ee_pwrc_ops = {
|
||||
.off = meson_ee_pwrc_off,
|
||||
.on = meson_ee_pwrc_on,
|
||||
.of_xlate = meson_ee_pwrc_of_xlate,
|
||||
|
||||
Reference in New Issue
Block a user