summaryrefslogtreecommitdiff
path: root/drivers/leds/trigger/Kconfig
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@ti.com>2013-03-14 11:29:24 (GMT)
committerBryan Wu <cooloney@gmail.com>2013-04-01 18:04:50 (GMT)
commit48a1d032c954b9b06c3adbf35ef4735dd70ab757 (patch)
tree1565df19ce741f9332e0a53cc9ef4881a389c002 /drivers/leds/trigger/Kconfig
parent39f7e08af3fd9ca1cb94a8270354afb2ea5cfcd3 (diff)
downloadlinux-48a1d032c954b9b06c3adbf35ef4735dd70ab757.tar.xz
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>
Diffstat (limited to 'drivers/leds/trigger/Kconfig')
-rw-r--r--drivers/leds/trigger/Kconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/leds/trigger/Kconfig b/drivers/leds/trigger/Kconfig
index eaa286d..49794b4 100644
--- a/drivers/leds/trigger/Kconfig
+++ b/drivers/leds/trigger/Kconfig
@@ -100,4 +100,12 @@ config LEDS_TRIGGER_TRANSIENT
GPIO/PWM based hardware.
If unsure, say Y.
+config LEDS_TRIGGER_CAMERA
+ tristate "LED Camera Flash/Torch Trigger"
+ depends on LEDS_TRIGGERS
+ help
+ This allows LEDs to be controlled as a camera flash/torch device.
+ This enables direct flash/torch on/off by the driver, kernel space.
+ If unsure, say Y.
+
endif # LEDS_TRIGGERS