PM / devfreq: Change prototype of devfreq_get_devfreq_by_phandle function
[platform/kernel/linux-rpi.git] / include / linux / devfreq.h
index eb971b8..2f4a74e 100644 (file)
@@ -262,7 +262,8 @@ void devm_devfreq_unregister_notifier(struct device *dev,
                                struct notifier_block *nb,
                                unsigned int list);
 struct devfreq *devfreq_get_devfreq_by_node(struct device_node *node);
-struct devfreq *devfreq_get_devfreq_by_phandle(struct device *dev, int index);
+struct devfreq *devfreq_get_devfreq_by_phandle(struct device *dev,
+                               const char *phandle_name, int index);
 
 #if IS_ENABLED(CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND)
 /**
@@ -421,7 +422,7 @@ static inline struct devfreq *devfreq_get_devfreq_by_node(struct device_node *no
 }
 
 static inline struct devfreq *devfreq_get_devfreq_by_phandle(struct device *dev,
-                                       int index)
+                                       const char *phandle_name, int index)
 {
        return ERR_PTR(-ENODEV);
 }