]> git.baikalelectronics.ru Git - kernel.git/commit
pmu_battery: Fix battery full reporting
authorThomas Champagne <lafeuil@gmail.com>
Fri, 18 Dec 2009 00:41:41 +0000 (03:41 +0300)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 18 Dec 2009 00:51:29 +0000 (03:51 +0300)
commit05e68d8c04bdbe1e0557b170959807d7989ea917
tree66f49909a111fcd7a32f96072dffc41484c1dd27
parent4f6f2456d9a33363111687060e1ce0a2b4a69ba2
pmu_battery: Fix battery full reporting

Prior to this patch, pmu_battery was unable to report battery full
status. This patch fixes the issue by adding a proper handling code
into pmu_bat_get_property(): if we're on AC and the battery isn't
charging, then the battery is considered full.

Signed-off-by: Thomas Champagne <lafeuil@gmail.com>
Acked-By: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/pmu_battery.c