power: bq25890: protect view of the chip's state
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sun, 3 May 2020 15:21:11 +0000 (17:21 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 3 May 2020 20:33:35 +0000 (22:33 +0200)
commit72d9cd9cdc18b53c1df935dc9d40ea7bf057387f
tree9e9664ff240a7430baddfa4d461c9b36f483fcbd
parenta9c2419406b8e50351b691d966dc4b7254678dbd
power: bq25890: protect view of the chip's state

Extend bq->lock over whole updating of the chip's state. Might get
useful later for switching ADC modes correctly.

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