LEDS: leds-pwm: Add init, notfiy and exit callbacks
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 13 May 2010 21:20:53 +0000 (23:20 +0200)
committerMartin Jansa <Martin.Jansa@gmail.com>
Thu, 1 Sep 2011 09:49:57 +0000 (11:49 +0200)
commit82dfe46f68342b3139b4df33cf3f782ab6d52dd9
tree6b49068419e6fe2c725543264dee492a25521f92
parent4e11662e7b95b1a8cdee1f5af9dc5ec49ce3c129
LEDS: leds-pwm: Add init, notfiy and exit callbacks

This patch adds init, notify and exit callbacks to the leds-pwm driver similar
to those seen for the pwm-backlight driver;

On certain platforms with pin muxing the output of a pwm pin is bogus until the
pwm is been properly configured. On these platforms it is usefull to have the
added callbacks, so that the gpio pin can be configured after the pwm device has
been successfully configured.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/leds/leds-pwm.c
include/linux/leds_pwm.h