regulator: axp20x: set supply names for AXP22X DC1SW/DC5LDO internally
authorChen-Yu Tsai <wens@csie.org>
Wed, 30 Sep 2015 06:39:46 +0000 (14:39 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 5 Oct 2015 14:05:29 +0000 (15:05 +0100)
commit7118f19c4c7cc95ad1513729b83f9db789970152
tree8e60a5bf3c6bc9e8956b4ed50f9962e535675950
parent8a29f6c3da0b56fa20c94edde98f53a5582e71a3
regulator: axp20x: set supply names for AXP22X DC1SW/DC5LDO internally

The DC1SW and DC5LDO regulators in the AXP22X are internally chained
to DCDC1 and DCDC5, hence the names. The original bindings used the
parent regulator names for the supply regulator property.

Since they are internally connected, the relationship should not be
represented in the device tree, but handled internally by the driver.

This patch has the driver remember the regulator names for the parent
DCDC1/DCDC5, and use them as supply names for DC1SW/DC5LDO.

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