summaryrefslogtreecommitdiffstats
path: root/include/regulator.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/regulator.h')
-rw-r--r--include/regulator.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/regulator.h b/include/regulator.h
index 26a5e56046..a43d3df540 100644
--- a/include/regulator.h
+++ b/include/regulator.h
@@ -15,7 +15,17 @@ struct regulator_ops {
int (*is_enabled) (struct regulator_dev *);
};
+#ifdef CONFIG_OFDEVICE
int of_regulator_register(struct regulator_dev *rd, struct device_node *node);
+#else
+static inline int of_regulator_register(struct regulator_dev *rd,
+ struct device_node *node)
+{
+ return -ENOSYS;
+}
+#endif
+int dev_regulator_register(struct regulator_dev *rd, const char * name,
+ const char* supply);
void regulators_print(void);