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

Commit 598c75eb authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: qpnp-smb5: Reverse the sign of CURRENT_NOW"

parents bc9d9c75 5fa16144
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2775,6 +2775,7 @@ static int qg_set_wa_flags(struct qpnp_qg *chip)
	case PM6150_SUBTYPE:
		chip->wa_flags |= QG_CLK_ADJUST_WA |
				QG_RECHARGE_SOC_WA;
		qg_esr_mod_count = 10;
		break;
	default:
		pr_err("Unsupported PMIC subtype %d\n",
+2 −0
Original line number Diff line number Diff line
@@ -1263,6 +1263,8 @@ static int smb5_batt_get_prop(struct power_supply *psy,
	case POWER_SUPPLY_PROP_CURRENT_NOW:
		rc = smblib_get_prop_from_bms(chg,
				POWER_SUPPLY_PROP_CURRENT_NOW, val);
		if (!rc)
			val->intval *= (-1);
		break;
	case POWER_SUPPLY_PROP_CURRENT_QNOVO:
		val->intval = get_client_vote_locked(chg->fcc_votable,