git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
leds: after setting inverted attribute, we must update the LED
[pandora-kernel.git]
/
drivers
/
leds
/
ledtrig-gpio.c
diff --git
a/drivers/leds/ledtrig-gpio.c
b/drivers/leds/ledtrig-gpio.c
index
8183b81
..
1bc5db4
100644
(file)
--- a/
drivers/leds/ledtrig-gpio.c
+++ b/
drivers/leds/ledtrig-gpio.c
@@
-117,6
+117,9
@@
static ssize_t gpio_trig_inverted_store(struct device *dev,
gpio_data->inverted = !!inverted;
+ /* After inverting, we need to update the LED. */
+ schedule_work(&gpio_data->work);
+
return n;
}
static DEVICE_ATTR(inverted, 0644, gpio_trig_inverted_show,