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)
commit9b2da53f7627304cd4030cb4883908bfb1bce998
treea76de46f2dd953d3d354a71c6dbf868fc58f3c7e
parent402f758813f5b3c21de36e9f720aacc8972ca94e
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