Skip to content

Commit 7257d93

Browse files
tremmetbroonie
authored andcommitted
regulator: pca9450: Fix LDO3OUT and LDO4OUT MASK
L3_OUT and L4_OUT Bit fields range from Bit 0:4 and thus the mask should be 0x1F instead of 0x0F. Fixes: 0935ff5 ("regulator: pca9450: add pca9450 pmic driver") Signed-off-by: Teresa Remmet <[email protected]> Reviewed-by: Frieder Schrempf <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent b00de00 commit 7257d93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/regulator/pca9450.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ enum {
196196

197197
/* PCA9450_REG_LDO3_VOLT bits */
198198
#define LDO3_EN_MASK 0xC0
199-
#define LDO3OUT_MASK 0x0F
199+
#define LDO3OUT_MASK 0x1F
200200

201201
/* PCA9450_REG_LDO4_VOLT bits */
202202
#define LDO4_EN_MASK 0xC0
203-
#define LDO4OUT_MASK 0x0F
203+
#define LDO4OUT_MASK 0x1F
204204

205205
/* PCA9450_REG_LDO5_VOLT bits */
206206
#define LDO5L_EN_MASK 0xC0

0 commit comments

Comments
 (0)