power: bq25890: Enable continuous conversion for ADC at charging
authorYauhen Kharuzhy <jekhor@gmail.com>
Sun, 7 Nov 2021 20:20:01 +0000 (23:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jan 2022 14:35:17 +0000 (15:35 +0100)
commit5aec746bf7f2aa96fac9c2d36fdb72741e2cccf6
treeb68c292c3e5e05a9f0b744df68f52aa0bfcbaaa0
parentb4391e49ac1db37810ea8ea10362d0fe111d4f46
power: bq25890: Enable continuous conversion for ADC at charging

commit 80211be1b9dec04cc2805d3d81e2091ecac289a1 upstream.

Instead of one shot run of ADC at beginning of charging, run continuous
conversion to ensure that all charging-related values are monitored
properly (input voltage, input current, themperature etc.).

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/power/supply/bq25890_charger.c