leds: Add WM8350 LED driver
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 4 Dec 2008 16:52:33 +0000 (16:52 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 8 Jan 2009 12:38:58 +0000 (12:38 +0000)
commit0081e8020ebd814a99e45720a10e869a54ee08a6
tree0036c31844ae55ff00b370a4a476768398c29844
parent934cd3f979a1daacbd403398f2c7a8f6720c33aa
leds: Add WM8350 LED driver

The voltage and current regulators on the WM8350 AudioPlus PMIC can be
used in concert to provide a power efficient LED driver.  This driver
implements support for this within the standard LED class.

Platform initialisation code should configure the LED hardware in the
init callback provided by the WM8350 core driver.  The callback should
use wm8350_isink_set_flash(), wm8350_dcdc25_set_mode() and
wm8350_dcdc_set_slot() to configure the operating parameters of the
regulators for their hardware and then then use wm8350_register_led() to
instantiate the LED driver.

This driver was originally written by Liam Girdwood, though it has been
extensively modified since then.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/leds/leds-wm8350.c [new file with mode: 0644]
drivers/mfd/wm8350-core.c
drivers/regulator/wm8350-regulator.c
include/linux/mfd/wm8350/pmic.h