mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 00:12:52 +00:00
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 <[email protected]> Acked-By: David Woodhouse <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>