regulator: max77620: fix setting active discharge
authorDamon Duan <danield@nvidia.com>
Thu, 19 Nov 2015 03:36:40 +0000 (11:36 +0800)
committermobile promotions <svcmobile_promotions@nvidia.com>
Fri, 20 Nov 2015 01:52:00 +0000 (17:52 -0800)
commitfc1a9abe28dcbb737ecbdc4be372a6fb6456fd84
treea32cf99fce410772e250ed1ae28cc6bc7443ff99
parent1bbb5dbf915e7700d43badc3b70244e0c0197edc
regulator: max77620: fix setting active discharge

MAX77620 has different settings to enable active
discharge:
-for Step-Down, need set nADE bit to 0
-for LDO, need set ADE bit to 1

Bug 1698711

Change-Id: I498b153ac11c32ef046e63b9bde5c286e17b3e2e
Signed-off-by: Damon Duan <danield@nvidia.com>
Reviewed-on: http://git-master/r/834996
Reviewed-by: Kerwin Wan <kerwinw@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Hayden Du <haydend@nvidia.com>
drivers/regulator/max77620-regulator.c
include/linux/mfd/max77620.h