[PATCH 7/9] regulator/core: remove regulator_get_init_drvdata()
From: Michał Mirosław
Date: Wed Aug 30 2023 - 18:38:11 EST
There are no in-tree users.
Signed-off-by: Michał Mirosław <mirq-linux@xxxxxxxxxxxx>
---
drivers/regulator/core.c | 6 ------
include/linux/regulator/driver.h | 1 -
2 files changed, 7 deletions(-)
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index c8d1b12ee43b..7c4ba090d88d 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -5881,12 +5881,6 @@ struct regmap *rdev_get_regmap(struct regulator_dev *rdev)
}
EXPORT_SYMBOL_GPL(rdev_get_regmap);
-void *regulator_get_init_drvdata(struct regulator_init_data *reg_init_data)
-{
- return reg_init_data->driver_data;
-}
-EXPORT_SYMBOL_GPL(regulator_get_init_drvdata);
-
#ifdef CONFIG_DEBUG_FS
static int supply_map_show(struct seq_file *sf, void *data)
{
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h
index 4b7eceb3828b..827888b4b16c 100644
--- a/include/linux/regulator/driver.h
+++ b/include/linux/regulator/driver.h
@@ -758,7 +758,6 @@ int regulator_set_active_discharge_regmap(struct regulator_dev *rdev,
int regulator_set_current_limit_regmap(struct regulator_dev *rdev,
int min_uA, int max_uA);
int regulator_get_current_limit_regmap(struct regulator_dev *rdev);
-void *regulator_get_init_drvdata(struct regulator_init_data *reg_init_data);
int regulator_find_closest_bigger(unsigned int target, const unsigned int *table,
unsigned int num_sel, unsigned int *sel);
int regulator_set_ramp_delay_regmap(struct regulator_dev *rdev, int ramp_delay);
--
2.39.2