Merge branch 'topic/suspend' of https://git.kernel.org/pub/scm/linux/kernel/git/broon...
[muen/linux.git] / drivers / regulator / internal.h
index aba8e4149838e34f3a8ced074c11e6566a213ad0..abfd56e8c78aa8f63e029204b60d4e27ae053b2a 100644 (file)
@@ -49,6 +49,15 @@ struct regulator {
        struct dentry *debugfs;
 };
 
+extern struct class regulator_class;
+
+static inline struct regulator_dev *dev_to_rdev(struct device *dev)
+{
+       return container_of(dev, struct regulator_dev, dev);
+}
+
+struct regulator_dev *of_find_regulator_by_node(struct device_node *np);
+
 #ifdef CONFIG_OF
 struct regulator_init_data *regulator_of_get_init_data(struct device *dev,
                                 const struct regulator_desc *desc,