Skip to content
Commit d36240d2 authored by Pali Rohár's avatar Pali Rohár Committed by Anton Vorontsov
Browse files

power_supply: Add power_supply notifier



This patch adds a notifier chain to the power_supply, this helps drivers
in other subsystem to listen to changes in power supply subsystem.

This would help to take some actions in those drivers on changing the
power supply properties. One such scenario is to increase/decrease system
performance based on the battery capacity/voltage. Another scenario is to
adjust the h/w peak current detection voltage/current thresholds based on
battery voltage/capacity. The notifier helps drivers to listen to changes
in power_suppy susbystem without polling the power_supply properties

Signed-off-by: default avatarJenny TC <jenny.tc@intel.com>
Signed-off-by: default avatarPali Rohár <pali.rohar@gmail.com>
Acked-by: default avatarJenny TC <jenny.tc@intel.com>
Signed-off-by: default avatarAnton Vorontsov <anton@enomsg.org>
parent 93353e80
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment