Commit 7257d930 authored by Teresa Remmet's avatar Teresa Remmet Committed by Mark Brown

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: 0935ff5f ("regulator: pca9450: add pca9450 pmic driver")
Signed-off-by: default avatarTeresa Remmet <t.remmet@phytec.de>
Reviewed-by: default avatarFrieder Schrempf <frieder.schrempf@kontron.de>
Link: https://lore.kernel.org/r/20230614125240.3946519-1-t.remmet@phytec.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent b00de000
...@@ -196,11 +196,11 @@ enum { ...@@ -196,11 +196,11 @@ enum {
/* PCA9450_REG_LDO3_VOLT bits */ /* PCA9450_REG_LDO3_VOLT bits */
#define LDO3_EN_MASK 0xC0 #define LDO3_EN_MASK 0xC0
#define LDO3OUT_MASK 0x0F #define LDO3OUT_MASK 0x1F
/* PCA9450_REG_LDO4_VOLT bits */ /* PCA9450_REG_LDO4_VOLT bits */
#define LDO4_EN_MASK 0xC0 #define LDO4_EN_MASK 0xC0
#define LDO4OUT_MASK 0x0F #define LDO4OUT_MASK 0x1F
/* PCA9450_REG_LDO5_VOLT bits */ /* PCA9450_REG_LDO5_VOLT bits */
#define LDO5L_EN_MASK 0xC0 #define LDO5L_EN_MASK 0xC0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment