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

Commit f6af62b0 authored by Kiran Gunda's avatar Kiran Gunda
Browse files

regulator: rpm-smd: Send the logical mode instead of the raw mode



RPM PMIC driver expects logical mode values for PMIC4 targets
instead of raw mode. Fix the same.

Change-Id: I8242dd76159f0d9e0169f49622827f55ce6665dd
Signed-off-by: default avatarKiran Gunda <kgunda@codeaurora.org>
parent d718e926
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -873,8 +873,8 @@ static int rpm_vreg_get_voltage(struct regulator_dev *rdev)
	return uV;
}

#define REGULATOR_MODE_PMIC4_LDO_LPM	5
#define REGULATOR_MODE_PMIC4_LDO_HPM	7
#define REGULATOR_MODE_PMIC4_LDO_LPM	0
#define REGULATOR_MODE_PMIC4_LDO_HPM	1
#define REGULATOR_MODE_PMIC5_LDO_LPM	4
#define REGULATOR_MODE_PMIC5_LDO_HPM	7