PM / devfreq: Add devfreq_get_devfreq_by_phandle()
[deliverable/linux.git] / include / linux / devfreq.h
index 6fa02a20eb63387e5b56866dc52c6a8287eb210f..aa0b8424ebc38c1bb90442055092aae836002179 100644 (file)
@@ -208,6 +208,9 @@ extern int devm_devfreq_register_opp_notifier(struct device *dev,
 extern void devm_devfreq_unregister_opp_notifier(struct device *dev,
                                                struct devfreq *devfreq);
 
+extern struct devfreq *devfreq_get_devfreq_by_phandle(struct device *dev,
+                                               int index);
+
 /**
  * devfreq_update_stats() - update the last_status pointer in struct devfreq
  * @df:                the devfreq instance whose status needs updating
@@ -307,6 +310,12 @@ static inline void devm_devfreq_unregister_opp_notifier(struct device *dev,
 {
 }
 
+static inline struct devfreq *devfreq_get_devfreq_by_phandle(struct device *dev,
+                                                       int index)
+{
+       return ERR_PTR(-ENODEV);
+}
+
 static inline int devfreq_update_stats(struct devfreq *df)
 {
        return -EINVAL;
This page took 0.025195 seconds and 5 git commands to generate.