From: Marek Vasut Date: Fri, 8 May 2026 12:22:14 +0000 (+0200) Subject: power: domain: zynqmp: Staticize and constify driver ops X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=77fa442ff51551dfb1bf558b6bf4a8ea2b2ff200;p=thirdparty%2Fu-boot.git 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 Reviewed-by: Michal Simek Reviewed-by: Peng Fan Signed-off-by: Peng Fan --- diff --git a/drivers/power/domain/zynqmp-power-domain.c b/drivers/power/domain/zynqmp-power-domain.c index a54de5c1439..0acfc54e787 100644 --- a/drivers/power/domain/zynqmp-power-domain.c +++ b/drivers/power/domain/zynqmp-power-domain.c @@ -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,