Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: leds-ss4200: Staticize nasgpio_led_get_attr()

nasgpio_led_get_attr() is used only in this file.
Fix the following sparse warning:

drivers/leds/leds-ss4200.c:200:5: warning: symbol 'nasgpio_led_get_attr' was not declared. Should it be static?

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>

authored by

Jingoo Han and committed by
Bryan Wu
2e87c092 87aae1ea

+1 -1
+1 -1
drivers/leds/leds-ss4200.c
··· 197 197 spin_unlock(&nasgpio_gpio_lock); 198 198 } 199 199 200 - u32 nasgpio_led_get_attr(struct led_classdev *led_cdev, u32 port) 200 + static u32 nasgpio_led_get_attr(struct led_classdev *led_cdev, u32 port) 201 201 { 202 202 struct nasgpio_led *led = led_classdev_to_nasgpio_led(led_cdev); 203 203 u32 gpio_in;