]> git.baikalelectronics.ru Git - kernel.git/commit
leds: after setting inverted attribute, we must update the LED
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Wed, 26 Aug 2009 21:29:32 +0000 (14:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 Aug 2009 03:06:53 +0000 (20:06 -0700)
commit32173df7254dbde062ddde79b7f95bc43da5f6ee
treee34948f103c0dc69cfdad69caead17eb184e9736
parent80c3c8e91d678a213d0f072f7d331408de6517d1
leds: after setting inverted attribute, we must update the LED

If we change the inverted attribute to another value, the LED will not be
inverted until we change the GPIO state.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Cc: Samuel R. C. Vale <srcvale@holoscopio.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/leds/ledtrig-gpio.c