summaryrefslogtreecommitdiff
path: root/init/init.cpp
diff options
context:
space:
mode:
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>2016-05-24 15:12:11 -0700
committeralk3pInjection <webmaster@raspii.tech>2022-01-11 21:20:40 +0800
commitd7454623bf74985633db4656f355e7b2951b6365 (patch)
tree28049152f4a853d183e96ec87ffd56f8adb0f55f /init/init.cpp
parent7bd769bbeb232087311baaff5c79496846a58e4e (diff)
healthd: Reinitialize mChargerNames for every battery update
Booting up the device without usb, the kernel sets the usb power supply type as UNKNOWN. The type of usb power supply changes at run-time as various chargers are plugged in/out. However, healthd initilizes the charger list only at bootup. Change it such that it checks for charger type changes with every battery or usb uevent. While at it, the kernel may have a power supply type which is not known to healthd. This is perfectly fine. Update healthd to not print a warning. Change-Id: I2ec9f9a420ca61814d43c316b418ce94de3691bc
Diffstat (limited to 'init/init.cpp')
0 files changed, 0 insertions, 0 deletions