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

Commit 3cf9de57 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-smbcharger: use secure access to update dcin limit registers



The Wipower DCIN current limit registers are secure. Use the secure apis to
update them.

Change-Id: Iae24698701da079e5f5e10bb5e4886ce87b743ad
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 700e0c78
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1896,7 +1896,7 @@ static int smbchg_dcin_ilim_config(struct smbchg_chip *chip, int offset, int ma)
	if (i < 0)
		i = 0;

	rc = smbchg_masked_write(chip, chip->bat_if_base + offset,
	rc = smbchg_sec_masked_write(chip, chip->bat_if_base + offset,
			ZIN_ICL_MASK, i);
	if (rc)
		dev_err(chip->dev, "Couldn't write bat if offset %d value = %d rc = %d\n",