]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: ip5xxx_power: Fall back to Charge End bit if status register is absent
authorCsókás, Bence <csokas.bence@prolan.hu>
Tue, 19 Nov 2024 18:07:38 +0000 (19:07 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 5 Dec 2024 00:07:08 +0000 (01:07 +0100)
commit667e11374f4e4c85452d1a4f6f3fe0640991abd8
tree59692dc3912dd970a199ecab0f53c2181bdd6d9c
parentee7300da80db325af4ddaf2127984f8fb561bc00
power: ip5xxx_power: Fall back to Charge End bit if status register is absent

On parts where there is no status register, check the Charge End
bit to set charging/not charging status. Fullness, trickle charge
status, discharging etc. cannot be determined from just this bit.

Signed-off-by: Csókás, Bence <csokas.bence@prolan.hu>
Link: https://lore.kernel.org/r/20241119180741.2237692-6-csokas.bence@prolan.hu
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ip5xxx_power.c