summaryrefslogtreecommitdiff
path: root/drivers/regulator/mpq7920.h
diff options
context:
space:
mode:
authorSaravanan Sekar <sravanhome@gmail.com>2020-01-10 13:22:20 +0300
committerMark Brown <broonie@kernel.org>2020-01-10 16:35:40 +0300
commit686f63616f4aede1356c1bc9fa4e9a92a123bcd6 (patch)
tree9f96ec8452a6ee4f42d6dc0461657b3587e8f45e /drivers/regulator/mpq7920.h
parentb83380512e955f538366c33dd79d660cdac2875c (diff)
downloadlinux-686f63616f4aede1356c1bc9fa4e9a92a123bcd6.tar.xz
regulator: mpq7920: Fix Woverflow warning on conversion
Fix warning Woverflow on type conversion reported on x86. Fixes: 6501c1f54a17 (regulator: mpq7920: add mpq7920 regulator driver) Signed-off-by: Saravanan Sekar <sravanhome@gmail.com> Link: https://lore.kernel.org/r/20200110102220.7163-1-sravanhome@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/mpq7920.h')
-rw-r--r--drivers/regulator/mpq7920.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/mpq7920.h b/drivers/regulator/mpq7920.h
index 6a93bfbc750c..1498a1e3f4f5 100644
--- a/drivers/regulator/mpq7920.h
+++ b/drivers/regulator/mpq7920.h
@@ -55,6 +55,8 @@
#define MPQ7920_MASK_SWITCH_FREQ 0x30
#define MPQ7920_MASK_BUCK_PHASE_DEALY 0x30
#define MPQ7920_MASK_DVS_SLEWRATE 0xc0
+#define MPQ7920_MASK_OVP 0x40
+#define MPQ7920_OVP_DISABLE ~(0x40)
#define MPQ7920_DISCHARGE_ON 0x1
#define MPQ7920_REGULATOR_EN_OFFSET 7