diff options
author | Bjørn Mork <[email protected]> | 2014-09-09 10:45:17 +0200 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2014-09-09 16:19:03 +0200 |
commit | 583ee394ac503ff9eac0f50673cd569643bdb3b4 (patch) | |
tree | da797d7a3f811846eeaf1b18dc064224f8d66766 /net/lapb/lapb_subr.c | |
parent | 2ce7598c9a453e0acd0e07be7be3f5eb39608ebd (diff) |
Revert "ACPI / battery: Fix warning message in acpi_battery_get_state()"
This reverts commit d719870b41e0 ("ACPI / battery: Fix warning message in
acpi_battery_get_state()")
Capping 'capacity_now' to 'full_charge_capacity' is plain wrong. If this
is necessary to work around some buggy firmware, then the workaround needs
protection against being applied to working firmwares.
Good battery firmwares will allow 'capacity_now' to increase above
'full_charge_capacity', and will update the latter when the battery
is fully charged. By capping 'capacity_now' we lose accurate capacity
reporting until charging is complete whenever 'full_charge_capacity'
needs to be increased.
Fixes: d719870b41e0 ("ACPI / battery: Fix warning message in acpi_battery_get_state()")
Cc: 3.16+ <[email protected]> # 3.16+
Signed-off-by: Bjørn Mork <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions