aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/internal.h')
-rw-r--r--drivers/regulator/internal.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/regulator/internal.h b/drivers/regulator/internal.h
index 84bbda10c396..80ba2a35a04b 100644
--- a/drivers/regulator/internal.h
+++ b/drivers/regulator/internal.h
@@ -35,4 +35,18 @@ struct regulator {
35 struct dentry *debugfs; 35 struct dentry *debugfs;
36}; 36};
37 37
38#ifdef CONFIG_OF
39struct regulator_init_data *regulator_of_get_init_data(struct device *dev,
40 const struct regulator_desc *desc,
41 struct device_node **node);
42#else
43static inline struct regulator_init_data *
44regulator_of_get_init_data(struct device *dev,
45 const struct regulator_desc *desc,
46 struct device_node **node)
47{
48 return NULL;
49}
50#endif
51
38#endif 52#endif