[PATCH 14/14] power: domain: zynqmp: Staticize and constify driver ops

Michal Simek michal.simek at amd.com
Mon May 11 08:35:11 CEST 2026



On 5/8/26 14:22, Marek Vasut wrote:
> 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 at mailbox.org>
> ---
> Cc: Jaehoon Chung <jh80.chung at samsung.com>
> Cc: Michal Simek <michal.simek at amd.com>
> Cc: Naman Trivedi <naman.trivedimanojbhai at amd.com>
> Cc: Peng Fan <peng.fan at nxp.com>
> Cc: Senthil Nathan Thangaraj <senthilnathan.thangaraj at amd.com>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Venkatesh Yadav Abbarapu <venkatesh.abbarapu at amd.com>
> Cc: u-boot at lists.denx.de
> ---
>   drivers/power/domain/zynqmp-power-domain.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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,

Reviewed-by: Michal Simek <michal.simek at amd.com>

Thanks,
Michal


More information about the U-Boot mailing list