power: supply: bq25890: Fix initial setting of the F_CONV_RATE field
authorHans de Goede <hdegoede@redhat.com>
Sat, 30 Oct 2021 18:28:04 +0000 (20:28 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 2 Nov 2021 15:48:47 +0000 (16:48 +0100)
commit22ad4f99f63fc892412cde5a45d43b2288a60b88
treec914901c9fde67c97d7092e4ff1a6462333da947
parentd01363da53ebd1920a9676ea12e5c1168e292346
power: supply: bq25890: Fix initial setting of the F_CONV_RATE field

The code doing the initial setting of the F_CONV_RATE field based
on the bq->state.online flag. In order for this to work properly,
this must be done after the initial bq25890_get_chip_state() call.

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