power: bq25890: fix ADC mode configuration
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Mon, 4 May 2020 19:47:45 +0000 (21:47 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 10 May 2020 21:06:33 +0000 (23:06 +0200)
commit21d90eda433f5d39930ca7133340225b8fb7940f
tree68f696fa0ec344833413976cdb398228c7538699
parent1e4724d0b7d1db3b7307fc95fb902a97f4a7b85a
power: bq25890: fix ADC mode configuration

Datasheet describes two modes for reading ADC measurements:
1. continuous, 1 Hz - enabled and started by CONV_RATE bit
2. one-shot - triggered by CONV_START bit

In continuous mode, CONV_START is read-only and signifies an ongoing
conversion.

Change the code to follow the datasheet and really disable continuous
mode for power saving.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq25890_charger.c