summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq/governor.h
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2021-09-20 20:22:47 +0300
committerViresh Kumar <viresh.kumar@linaro.org>2021-10-05 09:54:38 +0530
commit1cc55204b0dbba0ca09cc14624cbbeeb2d35742f (patch)
tree6e05d41a6cb18329fba90db12376c7cc99582aa6 /drivers/devfreq/governor.h
parente69709f6861aaba80b4eaab6825e8c522a2afb5c (diff)
downloadlinux-stable-1cc55204b0dbba0ca09cc14624cbbeeb2d35742f.tar.gz
linux-stable-1cc55204b0dbba0ca09cc14624cbbeeb2d35742f.tar.bz2
linux-stable-1cc55204b0dbba0ca09cc14624cbbeeb2d35742f.zip
PM / devfreq: Add devm_devfreq_add_governor()
Add resource-managed variant of devfreq_add_governor(). Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Acked-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/devfreq/governor.h')
-rw-r--r--drivers/devfreq/governor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/devfreq/governor.h b/drivers/devfreq/governor.h
index 2d69a0ce6291..002a7d67e39d 100644
--- a/drivers/devfreq/governor.h
+++ b/drivers/devfreq/governor.h
@@ -84,6 +84,9 @@ void devfreq_update_interval(struct devfreq *devfreq, unsigned int *delay);
int devfreq_add_governor(struct devfreq_governor *governor);
int devfreq_remove_governor(struct devfreq_governor *governor);
+int devm_devfreq_add_governor(struct device *dev,
+ struct devfreq_governor *governor);
+
int devfreq_update_status(struct devfreq *devfreq, unsigned long freq);
int devfreq_update_target(struct devfreq *devfreq, unsigned long freq);