Battery uevent must be Discharging when input suspended.
When we specify echo 1 > /d/google_charger/input_suspend
to stop charging we expect that the battery uevent to report that the
device is "Discharging" rather than Charging. We ensure this by
modifying sw5100_bms to mark when we disable charge as discharging
rather than not charging when usb is suspended.
Bug: 248085252
Test: Confirm that input suspend results in Discharging
Signed-off-by: Brandon Edens <[email protected]>
Change-Id: I311bb88dcf43b761e3679d2a6abcac9bec0e9fef
1 file changed