diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2021-09-20 20:22:47 +0300 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2021-10-05 07:24:38 +0300 |
commit | 1cc55204b0dbba0ca09cc14624cbbeeb2d35742f (patch) | |
tree | 6e05d41a6cb18329fba90db12376c7cc99582aa6 /drivers/devfreq/governor.h | |
parent | e69709f6861aaba80b4eaab6825e8c522a2afb5c (diff) | |
download | linux-1cc55204b0dbba0ca09cc14624cbbeeb2d35742f.tar.xz |
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.h | 3 |
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); |