summaryrefslogtreecommitdiffstats
path: root/include/linux/regulator/of_regulator.h
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-06-09 10:40:27 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-06-11 13:25:08 +0200
commit4767861b2aa418b138ad36655c292da83957a2b3 (patch)
tree79918171701ecdc3c62c66f55b51e59a5f7924e7 /include/linux/regulator/of_regulator.h
parent2d339da430d0adcc56eb0173418219bf2ef33139 (diff)
downloadbarebox-4767861b2aa418b138ad36655c292da83957a2b3.tar.gz
barebox-4767861b2aa418b138ad36655c292da83957a2b3.tar.xz
regulator: discard unused struct regulator_init_data handling
struct regulator_init_data and the contained regulation_constraints are populated from device tree, but unused anywhere. They are not required for the stpmic driver to operate, so they can just be dropped. No functional change. Tested-by: Enrico Jorns <ejo@pengutronix.de> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210609084027.13591-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux/regulator/of_regulator.h')
-rw-r--r--include/linux/regulator/of_regulator.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/regulator/of_regulator.h b/include/linux/regulator/of_regulator.h
index 265b98d1ee..de6d053e26 100644
--- a/include/linux/regulator/of_regulator.h
+++ b/include/linux/regulator/of_regulator.h
@@ -14,28 +14,15 @@ struct regulator_desc;
struct of_regulator_match {
const char *name;
void *driver_data;
- struct regulator_init_data *init_data;
struct device_node *of_node;
const struct regulator_desc *desc;
};
#if defined(CONFIG_OFDEVICE)
-extern struct regulator_init_data
- *of_get_regulator_init_data(struct device_d *dev,
- struct device_node *node,
- const struct regulator_desc *desc);
extern int of_regulator_match(struct device_d *dev, struct device_node *node,
struct of_regulator_match *matches,
unsigned int num_matches);
#else
-static inline struct regulator_init_data
- *of_get_regulator_init_data(struct device_d *dev,
- struct device_node *node,
- const struct regulator_desc *desc)
-{
- return NULL;
-}
-
static inline int of_regulator_match(struct device_d *dev,
struct device_node *node,
struct of_regulator_match *matches,