summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq/governor.h
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2021-09-20 19:22:47 +0200
committerViresh Kumar <viresh.kumar@linaro.org>2021-10-05 06:24:38 +0200
commit1cc55204b0dbba0ca09cc14624cbbeeb2d35742f (patch)
tree6e05d41a6cb18329fba90db12376c7cc99582aa6 /drivers/devfreq/governor.h
parentopp: Add more resource-managed variants of dev_pm_opp_of_add_table() (diff)
downloadlinux-1cc55204b0dbba0ca09cc14624cbbeeb2d35742f.tar.xz
linux-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);