regulator: tps62360: support force PWM mode via regulator mode
authorLaxman Dewangan <ldewangan@nvidia.com>
Mon, 14 May 2012 12:16:51 +0000 (17:16 +0530)
committerSimone Willett <swillett@nvidia.com>
Mon, 4 Jun 2012 21:20:51 +0000 (14:20 -0700)
commit4f569435116d03ae59e3acbfed7bdcc75ca88945
treee63676fea0e4b0841b2ae26f01bd91972987189b
parenta828242259b8fb216d76d28619f1ae2927932645
regulator: tps62360: support force PWM mode via regulator mode

Change the mechanism of enabling the force PWM mode through
regulator set mode. This can be dynamically configured now.
In the REGULATOR_MODE_FAST the force PWM is enabled and in
REGULATOR_MODE_NORMAL the force PWM is disabled.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cherry-picked from mainline commit 9a00630

Change-Id: I39a77dbe5d0c4c2a5b81dbfe51163a65894bc98c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/105832
Reviewed-by: Automatic_Commit_Validation_User
drivers/regulator/tps62360-regulator.c
include/linux/regulator/tps62360.h