Skip to content

Commit

Permalink
Fix drop 2% battery
Browse files Browse the repository at this point in the history
The battery is discharged by 2% instead of 1%

Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
  • Loading branch information
Alexey71 authored and franciscofranco committed Apr 13, 2017
1 parent c7a9452 commit e8b755a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/power/qpnp-fg.c
Original file line number Diff line number Diff line change
Expand Up @@ -5792,8 +5792,7 @@ static int fg_common_hw_init(struct fg_chip *chip)
}
}

rc = fg_mem_masked_write(chip, settings[FG_MEM_DELTA_SOC].address, 0xFF,
settings[FG_MEM_DELTA_SOC].value,
rc = fg_mem_masked_write(chip, settings[FG_MEM_DELTA_SOC].address, 0xFF, 1,
settings[FG_MEM_DELTA_SOC].offset);
if (rc) {
pr_err("failed to write delta soc rc=%d\n", rc);
Expand Down

0 comments on commit e8b755a

Please sign in to comment.