diff options
| -rw-r--r-- | drivers/power/supply/power_supply_core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c index 874495c6face..f7033ecf6d0b 100644 --- a/drivers/power/supply/power_supply_core.c +++ b/drivers/power/supply/power_supply_core.c | |||
| @@ -671,8 +671,10 @@ int power_supply_get_battery_info(struct power_supply *psy, | |||
| 671 | } | 671 | } |
| 672 | 672 | ||
| 673 | for (i = 0; i < tab_len; i++) { | 673 | for (i = 0; i < tab_len; i++) { |
| 674 | table[i].ocv = be32_to_cpu(*list++); | 674 | table[i].ocv = be32_to_cpu(*list); |
| 675 | table[i].capacity = be32_to_cpu(*list++); | 675 | list++; |
| 676 | table[i].capacity = be32_to_cpu(*list); | ||
| 677 | list++; | ||
| 676 | } | 678 | } |
| 677 | } | 679 | } |
| 678 | 680 | ||
