On 5/9/26 17:12, 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 <[email protected]>
> ---
> Cc: Patrice Chotard <[email protected]>
> Cc: Tom Rini <[email protected]>
> Cc: [email protected]
> ---
>  drivers/reset/sti-reset.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/reset/sti-reset.c b/drivers/reset/sti-reset.c
> index 412a0c5b452..37a37a72fd3 100644
> --- a/drivers/reset/sti-reset.c
> +++ b/drivers/reset/sti-reset.c
> @@ -290,7 +290,7 @@ static int sti_reset_deassert(struct reset_ctl *reset_ctl)
>       return sti_reset_program_hw(reset_ctl, false);
>  }
>  
> -struct reset_ops sti_reset_ops = {
> +static const struct reset_ops sti_reset_ops = {
>       .rst_assert = sti_reset_assert,
>       .rst_deassert = sti_reset_deassert,
>  };

Hi Marek

Reviewed-by: Patrice Chotard <[email protected]>

Thanks
Patrice

Reply via email to