diff options
author | Shuah Khan <shuahkhan@gmail.com> | 2012-06-13 06:01:37 +0400 |
---|---|---|
committer | Bryan Wu <bryan.wu@canonical.com> | 2012-07-24 03:52:34 +0400 |
commit | 0da3e65ba892b8c63d55fa5ec197b6fae55f75f8 (patch) | |
tree | 2df9324b199abaa542854297611e0c815517f51f /drivers/leds/ledtrig-gpio.c | |
parent | 5e417281cde2ef56e9eb1a95d080d6254402e794 (diff) | |
download | linux-0da3e65ba892b8c63d55fa5ec197b6fae55f75f8.tar.xz |
leds: Rename led_set_brightness() to __led_set_brightness()
Rename leds internal interface led_set_brightness() to __led_set_brightness()
to reduce confusion between led_set_brightness() and the external interface
led_brightness_set(). led_brightness_set() cancels the timer and then calls
led_set_brightness().
Signed-off-by: Shuah Khan <shuahkhan@gmail.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Diffstat (limited to 'drivers/leds/ledtrig-gpio.c')
-rw-r--r-- | drivers/leds/ledtrig-gpio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/leds/ledtrig-gpio.c b/drivers/leds/ledtrig-gpio.c index f057c101b896..ba215dc42f98 100644 --- a/drivers/leds/ledtrig-gpio.c +++ b/drivers/leds/ledtrig-gpio.c @@ -54,12 +54,12 @@ static void gpio_trig_work(struct work_struct *work) if (tmp) { if (gpio_data->desired_brightness) - led_set_brightness(gpio_data->led, + __led_set_brightness(gpio_data->led, gpio_data->desired_brightness); else - led_set_brightness(gpio_data->led, LED_FULL); + __led_set_brightness(gpio_data->led, LED_FULL); } else { - led_set_brightness(gpio_data->led, LED_OFF); + __led_set_brightness(gpio_data->led, LED_OFF); } } |