Skip to contentSkip to conversation

leds: cht-wcove: Mark cht_wc_leds_brightness_get() static

PATCH Applied Hans de Goede 2 participants 2 messages May 25, 2023 – Jun 8, 2023 LED

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 leds: cht-wcove: Mark cht_wc_leds_brightness_get() static

cht_wc_leds_brightness_get() is only used internally, mark it static.

---
 drivers/leds/leds-cht-wcove.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/leds/leds-cht-wcove.c +1 -1
index 0cfebee98910..0a5c30e5ed5d 100644
@@ -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;
Signature · 1 line
2.40.1
maintainer Applied
#1 lore raw
Quoted 9 lines · Hans de Goede

cht_wc_leds_brightness_get() is only used internally, mark it static.

---
 drivers/leds/leds-cht-wcove.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Signature · 1 line
Lee Jones [李琼斯]