-
由 Puthikorn Voravootivat 提交于
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: NPuthikorn Voravootivat <puthik@chromium.org> Reviewed-by: NDavid Riley <davidriley@chromium.org> Reviewed-by: NBenson Leung <bleung@chromium.org> Signed-off-by: NSebastian Reichel <sre@kernel.org>
90f04a28