leds: add camera LED triggers
authorKim, Milo <Milo.Kim@ti.com>
Thu, 14 Mar 2013 11:29:24 +0000 (04:29 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 1 Apr 2013 18:04:50 +0000 (11:04 -0700)
commit48a1d032c954b9b06c3adbf35ef4735dd70ab757
tree1565df19ce741f9332e0a53cc9ef4881a389c002
parent39f7e08af3fd9ca1cb94a8270354afb2ea5cfcd3
leds: add camera LED triggers

Some LED devices support flash/torch functionality through the LED subsystem.
This patch enables direct LED trigger controls by the driver.
Flash on/off and torch on/off can be done simply by other driver space.
Two trigger APIs are added, ledtrig_flash_ctrl() and ledtrig_torch_ctrl().

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/trigger/Kconfig
drivers/leds/trigger/Makefile
drivers/leds/trigger/ledtrig-camera.c [new file with mode: 0644]
include/linux/leds.h