aboutsummaryrefslogtreecommitdiff
path: root/drivers/regulator/mpq7920.c
diff options
context:
space:
mode:
authorSaravanan Sekar2020-01-10 11:22:20 +0100
committerMark Brown2020-01-10 13:35:40 +0000
commit686f63616f4aede1356c1bc9fa4e9a92a123bcd6 (patch)
tree9f96ec8452a6ee4f42d6dc0461657b3587e8f45e /drivers/regulator/mpq7920.c
parentb83380512e955f538366c33dd79d660cdac2875c (diff)
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.c')
-rw-r--r--drivers/regulator/mpq7920.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/mpq7920.c b/drivers/regulator/mpq7920.c
index c603d60fb87b..ab1b847c57e5 100644
--- a/drivers/regulator/mpq7920.c
+++ b/drivers/regulator/mpq7920.c
@@ -221,7 +221,7 @@ static int mpq7920_parse_cb(struct device_node *np,
if (of_property_read_bool(np, "mps,buck-ovp-disable")) {
regmap_update_bits(config->regmap,
MPQ7920_BUCK1_REG_B + (rdesc->id * 4),
- BIT(6), ~BIT(6));
+ MPQ7920_MASK_OVP, MPQ7920_OVP_DISABLE);
}
ret = of_property_read_u8(np, "mps,buck-phase-delay", &val);