diff options
author | Mariusz Ceier <[email protected]> | 2014-08-09 11:43:31 +0200 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2014-08-10 16:19:31 +0200 |
commit | d719870b41e00baf64d028c2668ae1fc3eb50e79 (patch) | |
tree | 6f49962a2622fbdd72c25c0782011d43570d3856 /drivers/scsi/mpt2sas/mpi/mpi2_init.h | |
parent | 3a54a57dceed78f7f3c35991d6d4a064a0c2e343 (diff) |
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 <[email protected]>
Cc: 3.16+ <[email protected]> # 3.16+
[rjw: Subject]
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_init.h')
0 files changed, 0 insertions, 0 deletions