Commit 034c3c95 authored by Quentin Schulz's avatar Quentin Schulz Committed by Lee Jones
Browse files

mfd: axp20x: Make AXP209/22x cells probe their ADC via DT



This makes AXP209 and AXP22x ADCs probe first via DT and then by
fallback via platform.

Signed-off-by: default avatarQuentin Schulz <quentin.schulz@bootlin.com>
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 99fb0f25
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -660,6 +660,7 @@ static struct mfd_cell axp20x_cells[] = {
		.name		= "axp20x-regulator",
	}, {
		.name		= "axp20x-adc",
		.of_compatible	= "x-powers,axp209-adc",
	}, {
		.name		= "axp20x-battery-power-supply",
		.of_compatible	= "x-powers,axp209-battery-power-supply",
@@ -684,7 +685,8 @@ static struct mfd_cell axp221_cells[] = {
	}, {
		.name		= "axp20x-regulator",
	}, {
		.name		= "axp22x-adc"
		.name		= "axp22x-adc",
		.of_compatible	= "x-powers,axp221-adc",
	}, {
		.name		= "axp20x-ac-power-supply",
		.of_compatible	= "x-powers,axp221-ac-power-supply",
@@ -708,6 +710,7 @@ static struct mfd_cell axp223_cells[] = {
		.resources		= axp22x_pek_resources,
	}, {
		.name		= "axp22x-adc",
		.of_compatible	= "x-powers,axp221-adc",
	}, {
		.name		= "axp20x-battery-power-supply",
		.of_compatible	= "x-powers,axp221-battery-power-supply",