]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: sbs-charger: Fix INHIBITED bit for Status reg
authorDaisuke Nojiri <dnojiri@chromium.org>
Mon, 24 Apr 2023 18:25:58 +0000 (11:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:44:10 +0000 (12:44 +0100)
commit5c00b669c1b29dd9247e8bc926f93623b56af6ce
treed7633a8c853706a12dd26f6c47d00e1e51524275
parent1dcafb4ff27a23b54a6c1a76e057e756130f4418
power: supply: sbs-charger: Fix INHIBITED bit for Status reg

commit b2f2a3c9800208b0db2c2e34b05323757117faa2 upstream.

CHARGE_INHIBITED bit position of the ChargerStatus register is actually
0 not 1. This patch corrects it.

Fixes: c9f6036504015 ("power: supply: add sbs-charger driver")
Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/power/supply/sbs-charger.c