From: Puthikorn Voravootivat Date: Wed, 22 Oct 2014 01:15:37 +0000 (-0700) Subject: bq27x00_battery: Call power_supply_changed only when capacity changed X-Git-Tag: fixes-v4.0-rc1~149^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90f04a28fbadbc179ee6325fd4ee7d5beb27bcf0;p=pandora-kernel.git bq27x00_battery: Call power_supply_changed only when capacity changed In current driver, power_supply_changed() is called whenever any of the battery attribute changed. This causes kernel to increases the '/sys/power/wakeup_count' and make suspend not working correctly. This patch change this behavior to call power_supply_changed() only when the battery capacity changed. Signed-off-by: Puthikorn Voravootivat Reviewed-by: David Riley Reviewed-by: Benson Leung Signed-off-by: Sebastian Reichel --- Reading git-diff-tree failed