[PATCH 07/14] power: domain: meson-ee-pwrc: Staticize and constify driver ops

Neil Armstrong neil.armstrong at linaro.org
Fri Jun 5 15:09:06 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: Neil Armstrong <neil.armstrong at linaro.org>
> Cc: Peng Fan <peng.fan at nxp.com>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: u-boot-amlogic at groups.io
> Cc: u-boot at lists.denx.de
> ---
>   drivers/power/domain/meson-ee-pwrc.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/power/domain/meson-ee-pwrc.c b/drivers/power/domain/meson-ee-pwrc.c
> index 4d9f3bba644..6361f3a6c59 100644
> --- a/drivers/power/domain/meson-ee-pwrc.c
> +++ b/drivers/power/domain/meson-ee-pwrc.c
> @@ -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,

Reviewed-by: Neil Armstrong <neil.armstrong at linaro.org>

Thanks,
Neil



More information about the U-Boot mailing list