ACPI / battery: Add quirk for Asus GL502VSK and UX305LA
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Tue, 21 Nov 2017 08:33:06 +0000 (03:33 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 18 Dec 2017 11:25:51 +0000 (12:25 +0100)
commitc68f0676ef7df08d52a65031db3e0ba017dbfd89
tree03f3087ebc63271a03e409e0427563ebcd6f3b4f
parent6993ce46c910ec83b4a7f064bbf76f254217019c
ACPI / battery: Add quirk for Asus GL502VSK and UX305LA

On Asus GL502VSK and UX305LA, ACPI incorrectly reports discharging when
battery is full and AC is plugged.

However rate_now is correct under this circumstance, hence we can use
"rate_now == 0" as a predicate to report battery full status correctly.

Link: https://bugs.launchpad.net/bugs/1482390
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/battery.c