]> 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)
commitd234f60d7f9bc30979cd11b5bbe599a71f2e1d59
treea76de46f2dd953d3d354a71c6dbf868fc58f3c7e
parente4aa13c05b86749389f46c155e75991154c14c1e
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