regulator: Add GPIO enable control to fixed voltage regulator driver
authorRoger Quadros <ext-roger.quadros@nokia.com>
Thu, 6 Aug 2009 16:37:29 +0000 (19:37 +0300)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 22 Sep 2009 12:32:41 +0000 (13:32 +0100)
commit86d9884b6a3646bc24e57430f1f694c5171c1bf6
tree958c38b9538a53ac0a638bce9ebf5faf595e95c3
parenta6576cff1801e2f1a9f328f02bd4cbcab7b03f91
regulator: Add GPIO enable control to fixed voltage regulator driver

Now fixed regulators that have their enable pin connected to a GPIO line
can use the fixed regulator driver for regulator enable/disable control.
The GPIO number and polarity information is passed through platform data.
GPIO enable control is achieved using gpiolib.

Signed-off-by: Roger Quadros <ext-roger.quadros@nokia.com>
Reviewed-by: Philipp Zabel <philipp.zabel@gmail.com>
Reviewed-by: Felipe Balbi <felipe.balbi@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/fixed.c
include/linux/regulator/fixed.h