* [PATCH] pwm: atmel-tcp: Make atmel_tcb_divisors static
@ 2022-04-08 15:29 Uwe Kleine-König
2022-04-08 15:42 ` Uwe Kleine-König
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2022-04-08 15:29 UTC (permalink / raw)
To: Thierry Reding, Lee Jones, Nicolas Ferre, Alexandre Belloni,
Claudiu Beznea
Cc: linux-pwm, linux-arm-kernel, kernel
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@pengutronix.de>
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] pwm: atmel-tcp: Make atmel_tcb_divisors static
2022-04-08 15:29 [PATCH] pwm: atmel-tcp: Make atmel_tcb_divisors static Uwe Kleine-König
@ 2022-04-08 15:42 ` Uwe Kleine-König
2022-04-11 8:22 ` Claudiu.Beznea
2022-04-22 16:50 ` Thierry Reding
2 siblings, 0 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2022-04-08 15:42 UTC (permalink / raw)
To: Thierry Reding
Cc: Lee Jones, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea,
linux-pwm, kernel, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 322 bytes --]
Hello Thierry,
I fat fingered the driver name in the subject line. Iff you apply this
patch please fixup accordingly (i.e. s/tcp/tcb/).
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] pwm: atmel-tcp: Make atmel_tcb_divisors static
2022-04-08 15:29 [PATCH] pwm: atmel-tcp: Make atmel_tcb_divisors static Uwe Kleine-König
2022-04-08 15:42 ` Uwe Kleine-König
@ 2022-04-11 8:22 ` Claudiu.Beznea
2022-04-22 16:50 ` Thierry Reding
2 siblings, 0 replies; 4+ messages in thread
From: Claudiu.Beznea @ 2022-04-11 8:22 UTC (permalink / raw)
To: u.kleine-koenig, thierry.reding, lee.jones, Nicolas.Ferre,
alexandre.belloni
Cc: linux-pwm, linux-arm-kernel, kernel
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@pengutronix.de>
Reviewed-by: Claudiu Beznea <claudiu.beznea@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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] pwm: atmel-tcp: Make atmel_tcb_divisors static
2022-04-08 15:29 [PATCH] pwm: atmel-tcp: Make atmel_tcb_divisors static Uwe Kleine-König
2022-04-08 15:42 ` Uwe Kleine-König
2022-04-11 8:22 ` Claudiu.Beznea
@ 2022-04-22 16:50 ` Thierry Reding
2 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2022-04-22 16:50 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Lee Jones, Nicolas Ferre, Alexandre Belloni, Claudiu Beznea,
linux-pwm, linux-arm-kernel, kernel
[-- Attachment #1: Type: text/plain, Size: 554 bytes --]
On Fri, Apr 08, 2022 at 05:29:10PM +0200, Uwe Kleine-König wrote:
> 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@pengutronix.de>
> ---
> drivers/pwm/pwm-atmel-tcb.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied with the subject fixed up.
Thanks,
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-04-22 16:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-08 15:29 [PATCH] pwm: atmel-tcp: Make atmel_tcb_divisors static Uwe Kleine-König
2022-04-08 15:42 ` Uwe Kleine-König
2022-04-11 8:22 ` Claudiu.Beznea
2022-04-22 16:50 ` Thierry Reding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).