Commit 1d220334d6a8a711149234dc5f98d34ae02226b8

Authored by Anton Vorontsov
1 parent 77f4b9fe05

apm_power: Add missing break statement

The missing break statement causes wrong capacity calculation for
batteries that report energy.

Reported-by: d binderman <dcb314@hotmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/power/apm_power.c
... ... @@ -233,6 +233,7 @@
233 233 empty_design_prop = POWER_SUPPLY_PROP_ENERGY_EMPTY_DESIGN;
234 234 now_prop = POWER_SUPPLY_PROP_ENERGY_NOW;
235 235 avg_prop = POWER_SUPPLY_PROP_ENERGY_AVG;
  236 + break;
236 237 case SOURCE_VOLTAGE:
237 238 full_prop = POWER_SUPPLY_PROP_VOLTAGE_MAX;
238 239 empty_prop = POWER_SUPPLY_PROP_VOLTAGE_MIN;