leds: lm355x, lm3642: support camera LED triggers for flash and torch
authorKim, Milo <Milo.Kim@ti.com>
Thu, 14 Mar 2013 11:29:26 +0000 (04:29 -0700)
committerBryan Wu <cooloney@gmail.com>
Mon, 1 Apr 2013 18:04:50 +0000 (11:04 -0700)
commit313bf0b1a0eaeaac17ea8c4b748f16e28fce8b7a
tree755f533e1c82fb69edda6e88abe96673dcef8a85
parent48a1d032c954b9b06c3adbf35ef4735dd70ab757
leds: lm355x, lm3642: support camera LED triggers for flash and torch

LM355x and LM3642 support flash and torch functionality.

 (Camera driver)          (LED trigger for camera)       (LED driver)
 Turn on the flash  ...>  ledtrig_flash_ctrl(true) ...>  LM355x or LM3642
                                                         brightness ctrl
                                                       <actual driving here>

Flash/torch LEDs are controlled by other driver using LED camera trigger
APIs, ledtrig_flash_ctrl()/ledtrig_torch_ctrl().
Then, actual device control is activated by each LED driver such like
LM355x or LM3642.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-lm355x.c
drivers/leds/leds-lm3642.c