]> git.baikalelectronics.ru Git - kernel.git/commit
leds: add new lp8788 led driver
authorKim, Milo <Milo.Kim@ti.com>
Fri, 20 Jul 2012 08:43:59 +0000 (16:43 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Thu, 26 Jul 2012 04:04:33 +0000 (12:04 +0800)
commitdec5816e1486f1b3ac983671c74878a0f60683ce
tree6b7183457dec3835c421a6e0a2c8242cb841180e
parentf07332da830bc431d5eb32ba722b6aceceb6f4d2
leds: add new lp8788 led driver

TI LP8788 PMU has the current sink as the keyboard led driver.
The brightness is controlled by the i2c commands.
Configurable parameters can be defined in the platform side.

Patch v2.
(a) use workqueue on changing the brightness

(b) use mutex_lock/unlock when the brightness is set
    and the led block of lp8788 device is enabled

(c) remove err_dev on _probe()
    : just return as returned value if any errors

(d) replace module_init/exit() with module_platform_driver()

(e) add led configuration structure and loading them by default
    if platform data is null

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/leds/leds-lp8788.c [new file with mode: 0644]