leds: Fix sparse warnings in leds-h1940 driver

Fixes the following sparse errors:
drivers/leds/leds-h1940.c:26:6: warning: symbol 'h1940_greenled_set' was not declared. Should it be static?
drivers/leds/leds-h1940.c:55:6: warning: symbol 'h1940_redled_set' was not declared. Should it be static?
drivers/leds/leds-h1940.c:85:6: warning: symbol 'h1940_blueled_set' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
This commit is contained in:
Ben Dooks 2008-06-09 22:00:49 +01:00 committed by Richard Purdie
parent 781a54e766
commit dd1160dc18
1 changed files with 6 additions and 3 deletions

View File

@ -23,7 +23,8 @@
/* /*
* Green led. * Green led.
*/ */
void h1940_greenled_set(struct led_classdev *led_dev, enum led_brightness value) static void h1940_greenled_set(struct led_classdev *led_dev,
enum led_brightness value)
{ {
switch (value) { switch (value) {
case LED_HALF: case LED_HALF:
@ -52,7 +53,8 @@ static struct led_classdev h1940_greenled = {
/* /*
* Red led. * Red led.
*/ */
void h1940_redled_set(struct led_classdev *led_dev, enum led_brightness value) static void h1940_redled_set(struct led_classdev *led_dev,
enum led_brightness value)
{ {
switch (value) { switch (value) {
case LED_HALF: case LED_HALF:
@ -82,7 +84,8 @@ static struct led_classdev h1940_redled = {
* Blue led. * Blue led.
* (it can only be blue flashing led) * (it can only be blue flashing led)
*/ */
void h1940_blueled_set(struct led_classdev *led_dev, enum led_brightness value) static void h1940_blueled_set(struct led_classdev *led_dev,
enum led_brightness value)
{ {
if (value) { if (value) {
/* flashing Blue */ /* flashing Blue */