regulator: axp20x: support AXP809 variant
authorChen-Yu Tsai <wens@csie.org>
Tue, 31 May 2016 16:23:19 +0000 (00:23 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 31 May 2016 17:37:07 +0000 (18:37 +0100)
commita51f9f4622a34eb19b5658c08b083345d763657b
tree4029cd9d3c2ebec09607ecbca9c968a2ab606d23
parent1a695a905c18548062509178b98bc91e67510864
regulator: axp20x: support AXP809 variant

The X-Powers AXP809 PMIC has a similar set of regulators as the AXP221,
though a few LDOs were removed, and a new switch output added. Like the
AXP221, AXP809 also has DC1SW and DC5LDO, which are internally chained
to DCDC1 and DCDC5, respectively.

Add support for this new variant. Also remove the "axp22x_" prefix from
DC1SW/DC5LDO supply handling code, as the AXP809 uses it as well.

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