summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2021-01-10 21:53:57 +0200
committerSebastian Reichel <sre@kernel.org>2021-01-14 23:42:42 +0100
commit2071236b8519673a276ecbf7f60a6f7da7e5cd8a (patch)
treeb26d66e593f1d532f353b2c9751dd954907ae735 /tools/perf/scripts/python/exported-sql-viewer.py
parent6ddcec581fdc1b9026dd1996b9f8b834c11d868f (diff)
power: supply: cpcap-charger: Provide state updates for battery from charger
We want to have the battery update it's status when the charge is done, and when the charger is disconnected. Otherwise the battery does not know when it's full unless there's a userspace app polling the battery status. To do this, we add supplied_to handling to cpcap-battery, and implement power_supply_changed() for cpcap-charger. When cpcap-charger calls power_supply_changed(), cpcap-battery will update it's status. Let's also use new_state variable for the POWER_SUPPLY_STATUS_CHARGING case to have unified handling for the switch. Cc: Arthur Demchenkov <spinal.by@gmail.com> Cc: Carl Philipp Klemm <philipp@uvos.xyz> Cc: Merlijn Wajer <merlijn@wizzup.org> Cc: Pavel Machek <pavel@ucw.cz> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions