power: supply: add AC power supply driver for AXP20X and AXP22X PMICs
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Fri, 27 Jan 2017 08:54:43 +0000 (09:54 +0100)
committerSebastian Reichel <sre@kernel.org>
Sun, 29 Jan 2017 22:15:18 +0000 (23:15 +0100)
commit744cc304a18f1c9de4f3215fbe93fe878f934179
tree706be76248208a0ff17e6d749e4555edbf832354
parent38fa69682fe91295f42cf2153bd1cf74eea35740
power: supply: add AC power supply driver for AXP20X and AXP22X PMICs

The X-Powers AXP20X and AXP22X PMICs expose the status of AC power
supply.

Moreover, the AXP20X can also expose the current current and voltage
values of the AC power supply.

This adds the driver which exposes the status of the AC power supply of
the AXP20X and AXP22X PMICs.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
[removed unused elements from struct axp20x_ac_power]
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/Kconfig
drivers/power/supply/Makefile
drivers/power/supply/axp20x_ac_power.c [new file with mode: 0644]