mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
Weighted capacity learning relies on input status to complete the capacity learning event. The existing logic only relies on charging_status change to send a cap-learning update, which in a corner condition may not send an update when input changes status. Fix this by always sending a capacity learning update irrespective of the change in input/charge status. Change-Id: Idfed395e1acad2b3b5c7b19ef137063d186af40f Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>