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>
This commit is contained in:
@@ -46,9 +46,9 @@ static int fb_notifier_callback(struct notifier_block *p,
|
||||
|
||||
if ((n->old_status == UNBLANK) ^ n->invert) {
|
||||
n->brightness = led->brightness;
|
||||
led_set_brightness(led, LED_OFF);
|
||||
__led_set_brightness(led, LED_OFF);
|
||||
} else {
|
||||
led_set_brightness(led, n->brightness);
|
||||
__led_set_brightness(led, n->brightness);
|
||||
}
|
||||
|
||||
n->old_status = new_status;
|
||||
@@ -87,9 +87,9 @@ static ssize_t bl_trig_invert_store(struct device *dev,
|
||||
|
||||
/* After inverting, we need to update the LED. */
|
||||
if ((n->old_status == BLANK) ^ n->invert)
|
||||
led_set_brightness(led, LED_OFF);
|
||||
__led_set_brightness(led, LED_OFF);
|
||||
else
|
||||
led_set_brightness(led, n->brightness);
|
||||
__led_set_brightness(led, n->brightness);
|
||||
|
||||
return num;
|
||||
}
|
||||
|
Reference in New Issue
Block a user