regulator: tps51632: write VMAX when lock bit is not set
authorLaxman Dewangan <ldewangan@nvidia.com>
Thu, 30 Aug 2012 08:00:01 +0000 (13:00 +0530)
committerVarun Colbert <vcolbert@nvidia.com>
Fri, 31 Aug 2012 00:29:48 +0000 (17:29 -0700)
commit28f0ff246bf80c842e6f8b92b2b9dbdac66f05e1
tree036af2535ac8b42370c31eb75334cb65135a7b0d
parent589595fc63f318f9d234334c9b6df6e70733337d
regulator: tps51632: write VMAX when lock bit is not set

TPS51632 hw behavior is that VMAX register can be written only
once as it get locked after first write. The lock get reset only
when device is power-reset. Write register only when lock bit is
not enabled.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Change-Id: I949439a0019ca44212128a23aea842d8be88523a
Reviewed-on: http://git-master/r/128445
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
drivers/regulator/tps51632-regulator.c