mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
power: domain: zynqmp: 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: Michal Simek <michal.simek@amd.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
@@ -57,7 +57,7 @@ static int zynqmp_power_domain_off(struct power_domain *power_domain)
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct power_domain_ops zynqmp_power_domain_ops = {
|
||||
static const struct power_domain_ops zynqmp_power_domain_ops = {
|
||||
.request = zynqmp_power_domain_request,
|
||||
.rfree = zynqmp_power_domain_free,
|
||||
.on = zynqmp_power_domain_on,
|
||||
|
||||
Reference in New Issue
Block a user