[PATCH] pwm: atmel-tcp: Make atmel_tcb_divisors static

Claudiu.Beznea at microchip.com Claudiu.Beznea at microchip.com
Mon Apr 11 01:22:17 PDT 2022


On 08.04.2022 18:29, Uwe Kleine-König wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> The array atmel_tcb_divisors is not supposed to be used outside of the
> driver, so make it static.
> 
> This fixes a sparse warning:
> 
>         drivers/pwm/pwm-atmel-tcb.c:64:10: warning: symbol 'atmel_tcb_divisors' was not declared. Should it be static?
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Reviewed-by: Claudiu Beznea <claudiu.beznea at microchip.com>


> ---
>  drivers/pwm/pwm-atmel-tcb.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pwm/pwm-atmel-tcb.c b/drivers/pwm/pwm-atmel-tcb.c
> index 36f7ea381838..9869d3eb8355 100644
> --- a/drivers/pwm/pwm-atmel-tcb.c
> +++ b/drivers/pwm/pwm-atmel-tcb.c
> @@ -61,7 +61,7 @@ struct atmel_tcb_pwm_chip {
>         struct atmel_tcb_channel bkup;
>  };
> 
> -const u8 atmel_tcb_divisors[] = { 2, 8, 32, 128, 0, };
> +static const u8 atmel_tcb_divisors[] = { 2, 8, 32, 128, 0, };
> 
>  static inline struct atmel_tcb_pwm_chip *to_tcb_chip(struct pwm_chip *chip)
>  {
> 
> base-commit: 3123109284176b1532874591f7c81f3837bbdc17
> --
> 2.35.1
> 



More information about the linux-arm-kernel mailing list