From: Pali Rohár Date: Tue, 19 Nov 2013 10:18:03 +0000 (+0100) Subject: power_supply: Add power_supply notifier X-Git-Tag: v3.14-rc1~141^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d36240d26025bec95f3499e2401a56db98d9f01c;p=pandora-kernel.git 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: Jenny TC Signed-off-by: Pali Rohár Acked-by: Jenny TC Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed