* [PATCH] leds: cht-wcove: mark cht_wc_leds_brightness_get static
@ 2023-06-01 21:34 Arnd Bergmann
2023-06-02 12:59 ` Hans de Goede
0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2023-06-01 21:34 UTC (permalink / raw)
To: Pavel Machek, Lee Jones, Hans de Goede, Yauhen Kharuzhy
Cc: Arnd Bergmann, linux-leds, linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
This was apparently made global but is not called from anywhere else:
drivers/leds/leds-cht-wcove.c:144:21: error: no previous prototype for 'cht_wc_leds_brightness_get' [-Werror=missing-prototypes]
Fixes: 047da762b9a93 ("leds: Add Intel Cherry Trail Whiskey Cove PMIC LED driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
drivers/leds/leds-cht-wcove.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/leds/leds-cht-wcove.c b/drivers/leds/leds-cht-wcove.c
index 0cfebee989107..0a5c30e5ed5d4 100644
--- a/drivers/leds/leds-cht-wcove.c
+++ b/drivers/leds/leds-cht-wcove.c
@@ -141,7 +141,7 @@ static int cht_wc_leds_brightness_set(struct led_classdev *cdev,
return ret;
}
-enum led_brightness cht_wc_leds_brightness_get(struct led_classdev *cdev)
+static enum led_brightness cht_wc_leds_brightness_get(struct led_classdev *cdev)
{
struct cht_wc_led *led = container_of(cdev, struct cht_wc_led, cdev);
unsigned int val;
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] leds: cht-wcove: mark cht_wc_leds_brightness_get static
2023-06-01 21:34 [PATCH] leds: cht-wcove: mark cht_wc_leds_brightness_get static Arnd Bergmann
@ 2023-06-02 12:59 ` Hans de Goede
0 siblings, 0 replies; 2+ messages in thread
From: Hans de Goede @ 2023-06-02 12:59 UTC (permalink / raw)
To: Arnd Bergmann, Pavel Machek, Lee Jones, Yauhen Kharuzhy
Cc: Arnd Bergmann, linux-leds, linux-kernel
Hi Arnd,
On 6/1/23 23:34, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> This was apparently made global but is not called from anywhere else:
>
> drivers/leds/leds-cht-wcove.c:144:21: error: no previous prototype for 'cht_wc_leds_brightness_get' [-Werror=missing-prototypes]
>
> Fixes: 047da762b9a93 ("leds: Add Intel Cherry Trail Whiskey Cove PMIC LED driver")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Thank you for the patch. This is a duplicate fix with these
2 earlier submissions of the same fix:
https://lore.kernel.org/linux-leds/20230525183317.129232-1-hdegoede@redhat.com/
https://lore.kernel.org/linux-leds/20230530234748.3641630-1-trix@redhat.com/
Regards,
Hans
> ---
> drivers/leds/leds-cht-wcove.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/leds/leds-cht-wcove.c b/drivers/leds/leds-cht-wcove.c
> index 0cfebee989107..0a5c30e5ed5d4 100644
> --- a/drivers/leds/leds-cht-wcove.c
> +++ b/drivers/leds/leds-cht-wcove.c
> @@ -141,7 +141,7 @@ static int cht_wc_leds_brightness_set(struct led_classdev *cdev,
> return ret;
> }
>
> -enum led_brightness cht_wc_leds_brightness_get(struct led_classdev *cdev)
> +static enum led_brightness cht_wc_leds_brightness_get(struct led_classdev *cdev)
> {
> struct cht_wc_led *led = container_of(cdev, struct cht_wc_led, cdev);
> unsigned int val;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-02 13:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-01 21:34 [PATCH] leds: cht-wcove: mark cht_wc_leds_brightness_get static Arnd Bergmann
2023-06-02 12:59 ` Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®