regulator: axp20x: Remove voltage readout support for switch regulators
authorChen-Yu Tsai <wens@csie.org>
Tue, 2 Feb 2016 10:27:37 +0000 (18:27 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 3 Feb 2016 17:15:08 +0000 (17:15 +0000)
commit94c39041ae0c0e83d10bc1a56974a2eefd9386c8
tree712cce613652bfbd4dde0d5c3a65711be97710fc
parent92e963f50fc74041b5e9e744c330dca48e04f08d
regulator: axp20x: Remove voltage readout support for switch regulators

Switch-type regulators, such as DC1SW on AXP22X, are a secondary output
from DCDC1. They are just an on/off switch, and the driver should not
try to read its voltage directly from the DCDC1 control registers.

Instead, the core will pass down the voltage from the regulator supply
chain.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c