alistair23-linux/drivers/power
Hans de Goede 331645e165 power: supply: axp288_fuel_gauge: Get iio-channels once during boot
Get iio-channels once during boot, delaying the probe if the axp288_adc
drivers has not loaded yet, instead of getting them on demand each time
we need them.

This fixes the following errors in dmesg:

axp288_fuel_gauge axp288_fuel_gauge: ADC charge current read failed:-19

Which were caused by the ondemand iio-channel read code not finding the
channel when the axp288_adc driver had not loaded yet.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
2018-01-08 18:38:57 +01:00
..
avs PM / AVS: Use %pS printk format for direct addresses 2017-10-11 02:05:09 +02:00
reset power: reset: remove unused imx-snvs-poweroff driver 2018-01-08 18:09:25 +01:00
supply power: supply: axp288_fuel_gauge: Get iio-channels once during boot 2018-01-08 18:38:57 +01:00
Kconfig
Makefile