Skip to content

Commit 53ba2f1

Browse files
AxelLinbroonie
authored andcommitted
regulator: mpq7920: Fix incorrect defines
Fix defines for MPQ7920_MASK_BUCK_ILIM and MPQ7920_DISCHARGE_ON Remove unused MPQ7920_REG_REGULATOR_EN1. Signed-off-by: Axel Lin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 493a31e commit 53ba2f1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/regulator/mpq7920.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@
4343
#define MPQ7920_LDO5_REG_B 0x1e
4444
#define MPQ7920_LDO5_REG_C 0x1f
4545
#define MPQ7920_REG_MODE 0x20
46-
#define MPQ7920_REG_REGULATOR_EN1 0x22
4746
#define MPQ7920_REG_REGULATOR_EN 0x22
4847

4948
#define MPQ7920_MASK_VREF 0x7f
50-
#define MPQ7920_MASK_BUCK_ILIM 0xd0
49+
#define MPQ7920_MASK_BUCK_ILIM 0xc0
5150
#define MPQ7920_MASK_LDO_ILIM BIT(6)
5251
#define MPQ7920_MASK_DISCHARGE BIT(5)
5352
#define MPQ7920_MASK_MODE 0xc0
@@ -57,7 +56,7 @@
5756
#define MPQ7920_MASK_DVS_SLEWRATE 0xc0
5857
#define MPQ7920_MASK_OVP 0x40
5958
#define MPQ7920_OVP_DISABLE ~(0x40)
60-
#define MPQ7920_DISCHARGE_ON 0x1
59+
#define MPQ7920_DISCHARGE_ON BIT(5)
6160

6261
#define MPQ7920_REGULATOR_EN_OFFSET 7
6362

0 commit comments

Comments
 (0)