From: Axel Lin <axel.lin@ingics.com>
To: Mark Brown <broonie@kernel.org>
Cc: Saravanan Sekar <sravanhome@gmail.com>,
Liam Girdwood <lgirdwood@gmail.com>,
linux-kernel@vger.kernel.org, Axel Lin <axel.lin@ingics.com>
Subject: [PATCH] regulator: mpq7920: Fix incorrect defines
Date: Wed, 15 Jan 2020 08:29:53 +0800 [thread overview]
Message-ID: <20200115002953.14731-1-axel.lin@ingics.com> (raw)
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>
---
drivers/regulator/mpq7920.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/regulator/mpq7920.h b/drivers/regulator/mpq7920.h
index 1498a1e3f4f5..489924655a96 100644
--- a/drivers/regulator/mpq7920.h
+++ b/drivers/regulator/mpq7920.h
@@ -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
@@ -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
--
2.20.1
next reply other threads:[~2020-01-15 0:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-15 0:29 Axel Lin [this message]
2020-01-17 15:44 ` Applied "regulator: mpq7920: Fix incorrect defines" to the regulator tree Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200115002953.14731-1-axel.lin@ingics.com \
--to=axel.lin@ingics.com \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sravanhome@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®