pmic: max77686: adjust operation mode names to match documentation
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Fri, 7 Aug 2015 10:01:07 +0000 (12:01 +0200)
committerJaehoon Chung <jh80.chung@samsung.com>
Thu, 6 Apr 2017 06:47:09 +0000 (15:47 +0900)
commitf050b39785b30c66e9a45e4641a720aa24c8100d
treeea7a91e90b4b67220fa3227eacc04bd727d15b44
parent08e5f93fab96a8e9a1c2665bac958d3f2f68bcdf
pmic: max77686: adjust operation mode names to match documentation

The MAX77686 PMIC's operation modes defined in the header were
quite misleading, because in the defined STANDBY mode, the output
were off, instead of staying in low power mode.

This commit correct this issue, and now the operation modes
are consistent with the PMIC's documentation.

Rename results:
- MAX77686_LDO_MODE_STANDBY     -> MAX77686_LDO_MODE_ON_AUTO_OFF
- MAX77686_LDO_MODE_STANDBY_LPM -> MAX77686_LDO_MODE_ON_AUTO_LPM
- MAX77686_BUCK_MODE_STANDBY    -> MAX77686_BUCK_MODE_ON_AUTO_OFF

For both modes, the output state is controlled by PMIC's PWRREQ
external signal used by SoC. In normal operation mode, when PWRREQ
signal is HIGH, the output is ON, amd for LOW signal, the output
is OFF or LPM (Low Power Mode).

As a result, this commit updates the Trats2 regulator settings.

Change-Id: Ibcb86e0c1ed50530930fbabab88bc374eedc4161
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
board/samsung/trats2/trats2.c
drivers/power/pmic/pmic_max77686.c
drivers/power/regulator/max77686.c
include/power/max77686_pmic.h