power: supply: bq25890: Always take HiZ mode into account for ADC rate
authorHans de Goede <hdegoede@redhat.com>
Mon, 28 Nov 2022 09:28:53 +0000 (10:28 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 2 Jan 2023 23:04:26 +0000 (00:04 +0100)
commitdee0df8496c1d13afd1bb447d284e1a76eb8e83e
tree6d1a1509b86c4a7b2d76aa84a564c883cf17d795
parent4413f9e9138fe4c50db80596635a1f7f1e8bfa6a
power: supply: bq25890: Always take HiZ mode into account for ADC rate

The code to check if F_CONV_RATE has been set, or if a manual ADC
conversion needs to be triggered, as well as the code to set
the initial F_CONV_RATE value at probe both where not taking
HiZ mode into account. Add checks for this.

Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq25890_charger.c