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

Commit fdca41a1 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: qpnp-fg: fix the bit mask used for forcing Rbias on



The driver uses 0x0F as the mask to force Rbias on or off. Instead
use the correct mask 0x17. BIT(4) actually forces the Rbias on
instead of BIT(3).

Change-Id: I1502c6388b0c7ae7bc7b838eae9b236a4747a86e
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent cb0b4937
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2262,8 +2262,8 @@ static int soc_to_setpoint(int soc)
#define SOC_DELTA_OFFSET	3
#define DELTA_SOC_PERCENT	1
#define BATT_TEMP_OFFSET	3
#define BATT_TEMP_CNTRL_MASK	0x0F
#define BATT_TEMP_ON		0x0E
#define BATT_TEMP_CNTRL_MASK	0x17
#define BATT_TEMP_ON		0x16
#define BATT_TEMP_OFF		0x01
#define THERMAL_COEFF_ADDR	0x444
#define THERMAL_COEFF_OFFSET	0x2