]> 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)
commit80c2d42d0fc1a6a4f09ba66c9f6024bd5ed157aa
tree706be76248208a0ff17e6d749e4555edbf832354
parentfd4d1d324493f88ccc7e99a0927e802a315f15eb
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]