[PATCH] regulator: rtq2208: remove unused rtq2208_regulator_ldo_ops
From: Arnd Bergmann
Date: Tue May 28 2024 - 08:13:17 EST
From: Arnd Bergmann <arnd@xxxxxxxx>
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@xxxxxxxx>
---
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