]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit516fb60b82742bf0b2231f32edbaf3e560a2c3ad
tree706be76248208a0ff17e6d749e4555edbf832354
parent96adf0dd1477b9206bfb30ea02e08d79955d5133
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]