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

Commit c2dc28c3 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg-gen4: Initialize SOH to -EINVAL



Similar to QG driver, initialize SOH to -EINVAL so that the user
can interpret it the same way before SOH algorithm writes back
calculated SOH to bms power supply.

Change-Id: I424e18709050b5b930214bfe69c1cf105539000c
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 30115b69
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6193,6 +6193,7 @@ static int fg_gen4_probe(struct platform_device *pdev)
	chip->ki_coeff_full_soc[1] = -EINVAL;
	chip->esr_soh_cycle_count = -EINVAL;
	chip->calib_level = -EINVAL;
	chip->soh = -EINVAL;
	fg->regmap = dev_get_regmap(fg->dev->parent, NULL);
	if (!fg->regmap) {
		dev_err(fg->dev, "Parent regmap is unavailable\n");