]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/leds/leds-lm3530.c: add regulator
authorShreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>
Wed, 25 May 2011 00:13:28 +0000 (17:13 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 25 May 2011 15:39:51 +0000 (08:39 -0700)
commitde2b50e05d2082bedca0380dfc66f13c782d5b4a
treea76de46f2dd953d3d354a71c6dbf868fc58f3c7e
parent512f6d7b597e9b9d7df3890478e375cbf82e77eb
drivers/leds/leds-lm3530.c: add regulator

Add add regulator support to lm3530 driver.  The lm3530 driver needs to
get proper regulator during device probe and enable it before accessing
the device.  Also it disables the regulator in case of brightness ==
LED_OFF, and puts it back during driver removal.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Shreshtha Kumar Sahu <shreshthakumar.sahu@stericsson.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/leds/leds-lm3530.c