Skip to content

Commit

Permalink
drivers: power: supply: Disable battery capacity learning
Browse files Browse the repository at this point in the history
Let the battery AI decide their own limits while charging.

Signed-off-by: Carlos Ayrton Lopez Arroyo <[email protected]>
  • Loading branch information
Official-Ayrton990 authored and TIMISONG-dev committed Jan 16, 2024
1 parent 5caab1e commit 6d993cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/supply/qcom/qpnp-qg.c
Original file line number Diff line number Diff line change
Expand Up @@ -3886,7 +3886,7 @@ static int qg_alg_init(struct qpnp_qg *chip)
"qcom,cl-disable");

/*Return if capacity learning is disabled*/
if (chip->dt.cl_disable)
if (!chip->dt.cl_disable)
return 0;

cl = devm_kzalloc(chip->dev, sizeof(*cl), GFP_KERNEL);
Expand Down

0 comments on commit 6d993cd

Please sign in to comment.