From: Luca Ceresoli <luca@lucaceresoli.net>
To: Lee Jones <lee.jones@linaro.org>
Cc: Luca Ceresoli <luca@lucaceresoli.net>,
Linus Walleij <linus.walleij@linaro.org>,
Bartosz Golaszewski <bgolaszewski@baylibre.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 3/3] mfd: lp87565: move LP87565_regulator_id to .c file
Date: Fri, 19 Feb 2021 23:39:10 +0100 [thread overview]
Message-ID: <20210219223910.1831-3-luca@lucaceresoli.net> (raw)
In-Reply-To: <20210219223910.1831-1-luca@lucaceresoli.net>
This enum is used only internally to the regulator driver for buck indexes.
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
drivers/regulator/lp87565-regulator.c | 11 +++++++++++
include/linux/mfd/lp87565.h | 11 -----------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/drivers/regulator/lp87565-regulator.c b/drivers/regulator/lp87565-regulator.c
index eeab9d3c824b..d059ae85047a 100644
--- a/drivers/regulator/lp87565-regulator.c
+++ b/drivers/regulator/lp87565-regulator.c
@@ -11,6 +11,17 @@
#include <linux/mfd/lp87565.h>
+enum LP87565_regulator_id {
+ /* BUCK's */
+ LP87565_BUCK_0,
+ LP87565_BUCK_1,
+ LP87565_BUCK_2,
+ LP87565_BUCK_3,
+ LP87565_BUCK_10,
+ LP87565_BUCK_23,
+ LP87565_BUCK_3210,
+};
+
#define LP87565_REGULATOR(_name, _id, _of, _ops, _n, _vr, _vm, \
_er, _em, _ev, _delay, _lr, _cr) \
[_id] = { \
diff --git a/include/linux/mfd/lp87565.h b/include/linux/mfd/lp87565.h
index a8799ae50dcf..94cb581af34b 100644
--- a/include/linux/mfd/lp87565.h
+++ b/include/linux/mfd/lp87565.h
@@ -237,17 +237,6 @@ enum lp87565_device_type {
#define LP87565_GPIO2_OUT BIT(1)
#define LP87565_GPIO1_OUT BIT(0)
-enum LP87565_regulator_id {
- /* BUCK's */
- LP87565_BUCK_0,
- LP87565_BUCK_1,
- LP87565_BUCK_2,
- LP87565_BUCK_3,
- LP87565_BUCK_10,
- LP87565_BUCK_23,
- LP87565_BUCK_3210,
-};
-
/**
* struct LP87565 - state holder for the LP87565 driver
* @dev: struct device pointer for MFD device
--
2.30.0
next prev parent reply other threads:[~2021-02-19 23:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-19 22:39 [PATCH 1/3] mfd: lp87565: fix typo in define names Luca Ceresoli
2021-02-19 22:39 ` [PATCH 2/3] mfd: lp87565: remove unused define Luca Ceresoli
2021-03-08 14:07 ` Lee Jones
2021-02-19 22:39 ` Luca Ceresoli [this message]
2021-03-08 14:07 ` [PATCH 3/3] mfd: lp87565: move LP87565_regulator_id to .c file Lee Jones
2021-03-08 14:04 ` [PATCH 1/3] mfd: lp87565: fix typo in define names Lee Jones
2021-05-12 9:17 ` Luca Ceresoli
2021-05-12 9:59 ` Lee Jones
2021-05-12 11:01 ` Luca Ceresoli
2021-03-08 14:59 ` Bartosz Golaszewski
2021-05-12 10:00 ` Lee Jones
2021-05-19 12:35 ` [GIT PULL] Immutable branch between MFD, GPIO and Regulator due for the v5.14 merge window Lee Jones
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=20210219223910.1831-3-luca@lucaceresoli.net \
--to=luca@lucaceresoli.net \
--cc=bgolaszewski@baylibre.com \
--cc=broonie@kernel.org \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.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).