From: Arnd Bergmann <arnd@kernel.org>
To: Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>, Alina Yu <alina_yu@richtek.com>
Cc: "Arnd Bergmann" <arnd@arndb.de>,
"Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>,
linux-kernel@vger.kernel.org
Subject: [PATCH] regulator: rtq2208: remove unused rtq2208_regulator_ldo_ops
Date: Tue, 28 May 2024 14:12:13 +0200 [thread overview]
Message-ID: <20240528121222.3675312-1-arnd@kernel.org> (raw)
From: Arnd Bergmann <arnd@arndb.de>
After the recent rework, the structure is no longer referenced
anywhere and causes a build time warning:
drivers/regulator/rtq2208-regulator.c:222:35: error: 'rtq2208_regulator_ldo_ops' defined but not used [-Werror=unused-const-variable=]
222 | static const struct regulator_ops rtq2208_regulator_ldo_ops = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Remove it to get a clean build again.
Fixes: 38bcec0e7cbb ("regulator: rtq2208: Fix LDO discharge register and add vsel setting")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
I did not analyze the change to see if this is the only required change
or if there should still have been a reference instead. Please review
and confirm, or provide a different fix.
---
drivers/regulator/rtq2208-regulator.c | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/drivers/regulator/rtq2208-regulator.c b/drivers/regulator/rtq2208-regulator.c
index b90e53d922d6..5b49eff90a7f 100644
--- a/drivers/regulator/rtq2208-regulator.c
+++ b/drivers/regulator/rtq2208-regulator.c
@@ -219,15 +219,6 @@ static const struct regulator_ops rtq2208_regulator_buck_ops = {
.set_suspend_mode = rtq2208_set_suspend_mode,
};
-static const struct regulator_ops rtq2208_regulator_ldo_ops = {
- .enable = regulator_enable_regmap,
- .disable = regulator_disable_regmap,
- .is_enabled = regulator_is_enabled_regmap,
- .set_active_discharge = regulator_set_active_discharge_regmap,
- .set_suspend_enable = rtq2208_set_suspend_enable,
- .set_suspend_disable = rtq2208_set_suspend_disable,
-};
-
static unsigned int rtq2208_of_map_mode(unsigned int mode)
{
switch (mode) {
--
2.39.2
next reply other threads:[~2024-05-28 12:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-28 12:12 Arnd Bergmann [this message]
2024-05-28 12:25 ` [PATCH] regulator: rtq2208: remove unused rtq2208_regulator_ldo_ops Mark Brown
2024-05-28 12:38 ` Arnd Bergmann
2024-05-28 13:03 ` 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=20240528121222.3675312-1-arnd@kernel.org \
--to=arnd@kernel.org \
--cc=alina_yu@richtek.com \
--cc=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
/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