OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b00de00
)
regulator: pca9450: Fix LDO3OUT and LDO4OUT MASK
author
Teresa Remmet
<t.remmet@phytec.de>
Wed, 14 Jun 2023 12:52:40 +0000
(14:52 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 19 Jun 2023 14:13:17 +0000
(15:13 +0100)
L3_OUT and L4_OUT Bit fields range from Bit 0:4 and thus the
mask should be 0x1F instead of 0x0F.
Fixes:
0935ff5f1f0a
("regulator: pca9450: add pca9450 pmic driver")
Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link:
https://lore.kernel.org/r/20230614125240.3946519-1-t.remmet@phytec.de
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regulator/pca9450.h
patch
|
blob
|
history
diff --git
a/include/linux/regulator/pca9450.h
b/include/linux/regulator/pca9450.h
index
3c01c2b
..
505c908
100644
(file)
--- a/
include/linux/regulator/pca9450.h
+++ b/
include/linux/regulator/pca9450.h
@@
-196,11
+196,11
@@
enum {
/* PCA9450_REG_LDO3_VOLT bits */
#define LDO3_EN_MASK 0xC0
-#define LDO3OUT_MASK 0x
0
F
+#define LDO3OUT_MASK 0x
1
F
/* PCA9450_REG_LDO4_VOLT bits */
#define LDO4_EN_MASK 0xC0
-#define LDO4OUT_MASK 0x
0
F
+#define LDO4OUT_MASK 0x
1
F
/* PCA9450_REG_LDO5_VOLT bits */
#define LDO5L_EN_MASK 0xC0