regulator: add support for changing control mode of regulator
authorLaxman Dewangan <ldewangan@nvidia.com>
Fri, 14 Dec 2012 06:27:52 +0000 (11:27 +0530)
committerSimone Willett <swillett@nvidia.com>
Thu, 20 Dec 2012 23:03:51 +0000 (15:03 -0800)
commitd9bdf71b4a13858efaf9668dadc7bb63fb2fb031
tree44f5e7ba42a33f591ecc902f59893069ab61a992
parent7aeea222eb335388c784278045009bcf3a715001
regulator: add support for changing control mode of regulator

Some of device supports to control the regulator output to
be set either through register write via I2C or through PWM.
Add supports to switch the mode dynamically.

Change-Id: I3214a6ff89f85592b1ada8e64f0946693ef4f4cc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/171309
Reviewed-on: http://git-master/r/172700
Reviewed-by: Automatic_Commit_Validation_User
drivers/regulator/core.c
include/linux/regulator/consumer.h
include/linux/regulator/driver.h
include/linux/regulator/machine.h