From: Pascal PAILLET-LME <p.paillet@st.com>
To: "lgirdwood@gmail.com" <lgirdwood@gmail.com>,
"broonie@kernel.org" <broonie@kernel.org>,
"robh+dt@kernel.org" <robh+dt@kernel.org>,
"mark.rutland@arm.com" <mark.rutland@arm.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"axel.lin@ingics.com" <axel.lin@ingics.com>
Cc: Pascal PAILLET-LME <p.paillet@st.com>,
"benjamin.gaignard@linaro.org" <benjamin.gaignard@linaro.org>,
"linux-stm32@st-md-mailman.stormreply.com"
<linux-stm32@st-md-mailman.stormreply.com>
Subject: [PATCH 1/8] regulator: stpmic1: Use regulator mode definition from bindings
Date: Tue, 19 Feb 2019 10:04:31 +0000 [thread overview]
Message-ID: <1550570647-9555-2-git-send-email-p.paillet@st.com> (raw)
In-Reply-To: <1550570647-9555-1-git-send-email-p.paillet@st.com>
Get the regulator mode definition from the bindings header.
Signed-off-by: pascal paillet <p.paillet@st.com>
---
drivers/regulator/stpmic1_regulator.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c
index d456fb5..c25f82f 100644
--- a/drivers/regulator/stpmic1_regulator.c
+++ b/drivers/regulator/stpmic1_regulator.c
@@ -12,6 +12,8 @@
#include <linux/regulator/machine.h>
#include <linux/regulator/of_regulator.h>
+#include <dt-bindings/mfd/st,stpmic1.h>
+
/**
* stpmic1 regulator description
* @desc: regulator framework description
@@ -68,9 +70,6 @@ enum {
/* Enable time worst case is 5000mV/(2250uV/uS) */
#define PMIC_ENABLE_TIME_US 2200
-#define STPMIC1_BUCK_MODE_NORMAL 0
-#define STPMIC1_BUCK_MODE_LP BUCK_HPLP_ENABLE_MASK
-
static const struct regulator_linear_range buck1_ranges[] = {
REGULATOR_LINEAR_RANGE(600000, 0, 30, 25000),
REGULATOR_LINEAR_RANGE(1350000, 31, 63, 0),
--
1.9.1
next prev parent reply other threads:[~2019-02-19 10:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-19 10:04 [PATCH 0/8] STPMIC1 Fixes Pascal PAILLET-LME
2019-02-19 10:04 ` Pascal PAILLET-LME [this message]
2019-02-19 10:04 ` [PATCH 2/8] regulator: stpmic1: Simplify regulators registration Pascal PAILLET-LME
2019-02-19 10:04 ` [PATCH 3/8] dt-bindings: regulator: remove interrupt-parent description on stpmic1 Pascal PAILLET-LME
2019-02-19 10:04 ` [PATCH 4/8] dt-bindings: regulator: remove regulator pull-down support for stpmic1 Pascal PAILLET-LME
2019-02-19 10:04 ` [PATCH 5/8] regulator: stpmic1: Remove support for regulator pull down Pascal PAILLET-LME
2019-02-19 10:04 ` [PATCH 7/8] dt-bindings: regulator: Add active discharge support for stpmic1 Pascal PAILLET-LME
2019-02-19 10:04 ` [PATCH 6/8] regulator: stpmic1: Change buck1 voltage range Pascal PAILLET-LME
2019-02-19 10:42 ` Mark Brown
2019-02-19 10:04 ` [PATCH 8/8] regulator: stpmic1: Add active discharge support Pascal PAILLET-LME
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=1550570647-9555-2-git-send-email-p.paillet@st.com \
--to=p.paillet@st.com \
--cc=axel.lin@ingics.com \
--cc=benjamin.gaignard@linaro.org \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mark.rutland@arm.com \
--cc=robh+dt@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).