]> 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 13:03:22 +0000 (14:03 +0100)
commit0b2811479bfc2c7eb89dec447947d0e5e1dddf8d
tree9c67519b8a6d54791723eb42116ae87608107b68
parent2ba667422f9382cfb49b3c847ac7e3a90e226a28
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