]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f21fb7928b639cc8226bb7cdc7a51d7f11977f5
treec914901c9fde67c97d7092e4ff1a6462333da947
parent4f2f994d3f721d7bc3a23848e7ef2bff9300d94f
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