]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: bq25890: fix BAT_COMP field definition
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Mon, 17 Dec 2018 19:28:15 +0000 (20:28 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 17 Dec 2018 23:21:16 +0000 (00:21 +0100)
commit6f112841b5ff0ffb9f4fa78a830a49414fcef059
treebeace7821db9972a2d835bd8eae3f8ec7dbbadf3
parente102e00ed4cc5bef8b28cea192b7e41c5ac5da5e
power: supply: bq25890: fix BAT_COMP field definition

According to datasheet, BAT_COMP field spans bits 5-7. The rest of the
code seems to assume this already.

Fixes: 44f4412a959e ("power_supply: Add support for TI BQ25890 charger chip")
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