power: supply: ab8500_charger: Convert to IIO ADC
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 11 Oct 2019 07:18:00 +0000 (09:18 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 18 Oct 2019 18:36:57 +0000 (19:36 +0100)
commit97ab78bac5d0d2d5eec68278d4c1810056388189
treee56c97ef26cef04e456838d9e7668dba7ad072e8
parent0a8686e3090c4a2d21049fccc9466c9d3d312ba6
power: supply: ab8500_charger: Convert to IIO ADC

This switches the AB8500 battery charger driver to using
the standard IIO ADC channel lookup and conversion routines.

Acked-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/power/supply/ab8500_charger.c