diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-05-22 12:54:55 +0200 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-05-26 14:07:55 +0200 |
commit | 2146325df2c2640059a9e064890c30c6e259b458 (patch) | |
tree | 022468b1246d7d795ee351b80404efd4b25b5610 /fs/binfmt_em86.c | |
parent | leds: Add LED driver for the Soekris net5501 board (diff) | |
download | linux-2146325df2c2640059a9e064890c30c6e259b458.tar.xz linux-2146325df2c2640059a9e064890c30c6e259b458.zip |
leds: leds-gpio: Change blink_set callback to be able to turn off blinking
The leds-gpio blink_set() callback follows the same prototype as the
main leds subsystem blink_set() one.
The problem is that to stop blink, normally, a leds driver does it
in the brightness_set() callback when asked to set a new fixed value.
However, with leds-gpio, the platform has no hook to do so, as this
later callback results in a standard GPIO manipulation.
This changes the leds-gpio specific callback to take a new argument
that indicates whether the LED should be blinking or not and in what
state it should be set if not. We also update the dns323 platform
which seems to be the only user of this so far.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'fs/binfmt_em86.c')
0 files changed, 0 insertions, 0 deletions