Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fab913b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: qpnp-fg: fix address used for storing cc_soc coefficient"

parents e09fe057 dd270f67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2835,7 +2835,7 @@ static void fg_cap_learning_save_data(struct fg_chip *chip)
			cc_to_soc_coeff = div64_s64(half_float(data), cc_mah);
			half_float_to_buffer(cc_to_soc_coeff, data);
			rc = fg_mem_write(chip, (u8 *)data,
					FG_AGING_STORAGE_REG, 2,
					ACTUAL_CAPACITY_REG, 2,
					CC_SOC_COEFF_OFFSET, 0);
			if (rc)
				pr_err("Failed to write cc_soc_coeff_offset: %d\n",