PM / devfreq: Add suspend and resume apis
[firefly-linux-kernel-4.4.55.git] / include / linux / devfreq.h
index 9cdffde74bb50e5d5cc9ae97fa09da23f32cecad..ee243a3229b8042dc79e5f56e5d459ce9a06f3b5 100644 (file)
@@ -158,6 +158,8 @@ extern struct devfreq *devfreq_add_device(struct device *dev,
                                  const struct devfreq_governor *governor,
                                  void *data);
 extern int devfreq_remove_device(struct devfreq *devfreq);
+extern int devfreq_suspend_device(struct devfreq *devfreq);
+extern int devfreq_resume_device(struct devfreq *devfreq);
 
 /* Helper functions for devfreq user device driver with OPP. */
 extern struct opp *devfreq_recommended_opp(struct device *dev,
@@ -211,6 +213,16 @@ static int devfreq_remove_device(struct devfreq *devfreq)
        return 0;
 }
 
+static int devfreq_suspend_device(struct devfreq *devfreq)
+{
+       return 0;
+}
+
+static int devfreq_resume_device(struct devfreq *devfreq)
+{
+       return 0;
+}
+
 static struct opp *devfreq_recommended_opp(struct device *dev,
                                           unsigned long *freq, u32 flags)
 {