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)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 7 Jun 2012 09:34:33 +0000 (14:34 +0530)
commit51e5f948670efa13af0a31b32a5aaa86dc9d2f6d
tree01fdcb98bdb4fb34c63249c1d721b275b45998c5
parente5f6cc03c5fa051ea08e3ce88e3cb7f4acf15964
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