Skip to content

Commit

Permalink
regulator: mpq7920: Fix incorrect defines
Browse files Browse the repository at this point in the history
Fix defines for MPQ7920_MASK_BUCK_ILIM and MPQ7920_DISCHARGE_ON
Remove unused MPQ7920_REG_REGULATOR_EN1.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20200115002953.14731-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Axel Lin authored and Mark Brown committed Jan 17, 2020
1 parent 493a31e commit 53ba2f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/regulator/mpq7920.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@
#define MPQ7920_LDO5_REG_B 0x1e
#define MPQ7920_LDO5_REG_C 0x1f
#define MPQ7920_REG_MODE 0x20
#define MPQ7920_REG_REGULATOR_EN1 0x22
#define MPQ7920_REG_REGULATOR_EN 0x22

#define MPQ7920_MASK_VREF 0x7f
#define MPQ7920_MASK_BUCK_ILIM 0xd0
#define MPQ7920_MASK_BUCK_ILIM 0xc0
#define MPQ7920_MASK_LDO_ILIM BIT(6)
#define MPQ7920_MASK_DISCHARGE BIT(5)
#define MPQ7920_MASK_MODE 0xc0
Expand All @@ -57,7 +56,7 @@
#define MPQ7920_MASK_DVS_SLEWRATE 0xc0
#define MPQ7920_MASK_OVP 0x40
#define MPQ7920_OVP_DISABLE ~(0x40)
#define MPQ7920_DISCHARGE_ON 0x1
#define MPQ7920_DISCHARGE_ON BIT(5)

#define MPQ7920_REGULATOR_EN_OFFSET 7

Expand Down

0 comments on commit 53ba2f1

Please sign in to comment.