aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/led-core.c
diff options
context:
space:
mode:
authorShuah Khan <shuahkhan@gmail.com>2012-06-12 22:01:37 -0400
committerBryan Wu <bryan.wu@canonical.com>2012-07-23 19:52:34 -0400
commit0da3e65ba892b8c63d55fa5ec197b6fae55f75f8 (patch)
tree2df9324b199abaa542854297611e0c815517f51f /drivers/leds/led-core.c
parent5e417281cde2ef56e9eb1a95d080d6254402e794 (diff)
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/led-core.c')
-rw-r--r--drivers/leds/led-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/leds/led-core.c b/drivers/leds/led-core.c
index 31f1f78ef40b..176961b2db6b 100644
--- a/drivers/leds/led-core.c
+++ b/drivers/leds/led-core.c
@@ -45,7 +45,7 @@ static void led_set_software_blink(struct led_classdev *led_cdev,
45 45
46 /* never off - just set to brightness */ 46 /* never off - just set to brightness */
47 if (!delay_off) { 47 if (!delay_off) {
48 led_set_brightness(led_cdev, led_cdev->blink_brightness); 48 __led_set_brightness(led_cdev, led_cdev->blink_brightness);
49 return; 49 return;
50 } 50 }
51 51
@@ -111,6 +111,6 @@ void led_brightness_set(struct led_classdev *led_cdev,
111 led_cdev->blink_delay_on = 0; 111 led_cdev->blink_delay_on = 0;
112 led_cdev->blink_delay_off = 0; 112 led_cdev->blink_delay_off = 0;
113 113
114 led_set_brightness(led_cdev, brightness); 114 __led_set_brightness(led_cdev, brightness);
115} 115}
116EXPORT_SYMBOL(led_brightness_set); 116EXPORT_SYMBOL(led_brightness_set);