Mariusz Ceier d719870b41 ACPI / battery: Fix warning message in acpi_battery_get_state()
capacity_now should be assigned after comparing it to design_capacity.

Otherwise warning is printed even when capacity_now before assignment is
equal to design_capacity, making the check useless and "current charge level"
wrong (it should be higher than, not equal to, "maximum charge level", which
is full_charge_capacity):

"battery: reported current charge level (56410) is higher than reported
maximum charge level (56410)."

Fixes: 232de5143790 (ACPI / battery: fix wrong value of capacity_now reported when fully charged)
Signed-off-by: Mariusz Ceier <mceier+kernel@gmail.com>
Cc: 3.16+ <stable@vger.kernel.org> # 3.16+
[rjw: Subject]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-08-10 16:19:31 +02:00
..
2013-09-30 19:46:13 +02:00
2014-06-03 23:11:52 +02:00
2014-06-03 23:12:27 +02:00
2014-02-05 01:06:21 +01:00
2013-12-07 01:38:45 +01:00
2014-06-03 23:12:20 +02:00
2013-01-17 14:11:06 +01:00
2014-05-26 14:38:57 +02:00