Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit cd054ee1 authored by Thomas Elste's avatar Thomas Elste Committed by Sebastian Reichel
Browse files

power: bq24190_charger: Change first_time flag reset condition



The initial register reset of BQ24190 generates a charger status change
whose propagation via power_supply_changed is prevented using a flag.
This flag gets never reset so all following events are ignored as well
leading for example to userspace not detecting charger connects/disconnects.

Therefor change the reset condition of first_time flag, so only the
propagation of the first charger status change is prevented.

Signed-off-by: default avatarThomas Elste <thomas.elste@imms.de>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 843735b7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment