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

Commit bbdb5d90 authored by Nicholas Troast's avatar Nicholas Troast Committed by Gerrit - the friendly Code Review server
Browse files

power: smb135x-charger: fix fast charge current mask



FCC_MASK masks bits [5:0] which does not match the hardware
specification of writing only to bits [4:0] for configuring FCC.
Fix it.

CRs-Fixed: 877479
Change-Id: I6443fd3dbbad75539b250a085750a3cb59b73734
Signed-off-by: default avatarNicholas Troast <ntroast@codeaurora.org>
parent 3e5d75b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1063,7 +1063,7 @@ static int smb135x_get_usb_chg_current(struct smb135x_chg *chip)
	else
		return chip->real_usb_psy_ma;
}
#define FCC_MASK			SMB135X_MASK(5, 0)
#define FCC_MASK			SMB135X_MASK(4, 0)
#define CFG_1C_REG			0x1C
static int smb135x_get_fastchg_current(struct smb135x_chg *chip)
{