aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/axp20x_ac_power.c
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@free-electrons.com>2017-01-27 09:54:36 +0100
committerSebastian Reichel <sre@kernel.org>2017-01-29 23:15:17 +0100
commit33863c938caa2538397170f1a355885f1ea1564e (patch)
tree757c1a82857b7757260222d7674d40c269f22ac1 /drivers/power/supply/axp20x_ac_power.c
parentpower: supply: max14656: Export I2C and OF device ID as module aliases (diff)
downloadlinux-dev-33863c938caa2538397170f1a355885f1ea1564e.tar.xz
linux-dev-33863c938caa2538397170f1a355885f1ea1564e.zip
power: supply: axp20x_usb_power: use IIO channels when available
The X-Powers AXP20X PMIC exposes the current current and voltage measures via an internal ADC. This adds the possibility to read IIO channels directly for processed values rather than reading the registers and computing the value. For backward compatibility purpose, if the IIO driver is not compiled, this driver will fall back on previous behaviour which is direct register readings. Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/supply/axp20x_ac_power.c')
0 files changed, 0 insertions, 0 deletions