power: supply: bq27xxx_battery: do not update cached flags prematurely
[ Upstream commit 45291874 ] Commit 243f8ffc ("power: supply: bq27xxx_battery: Notify also about status changes") intended to notify userspace when the status changes, based on the flags register. However, the cached state is updated too early, before the flags are tested for any changes. Remove the premature update. Fixes: 243f8ffc ("power: supply: bq27xxx_battery: Notify also about status changes") Signed-off-by:Sicelo A. Mhlongo <absicsz@gmail.com> Link: https://lore.kernel.org/r/20241125152945.47937-1-absicsz@gmail.com Signed-off-by:
Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please sign in to comment