diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2023-12-19 11:32:39 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-05 20:16:46 +0000 |
commit | 5f93c49247dc645aa249534ed1147d2739f698a1 (patch) | |
tree | f9a6f484c6c3b11266bcaadf87f245550945c720 /include | |
parent | f6d6e9cfce7d6e576216ea54bfeae504dd6b4e73 (diff) | |
download | linux-stable-5f93c49247dc645aa249534ed1147d2739f698a1.tar.gz linux-stable-5f93c49247dc645aa249534ed1147d2739f698a1.tar.bz2 linux-stable-5f93c49247dc645aa249534ed1147d2739f698a1.zip |
OPP: The level field is always of unsigned int type
[ Upstream commit ba367479c7ad0b870461024cd5ae7a1ea6e1e3db ]
By mistake, dev_pm_opp_find_level_floor() used the level parameter as
unsigned long instead of unsigned int. Fix it.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pm_opp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/pm_opp.h b/include/linux/pm_opp.h index ccd97bcef269..18a102174c4f 100644 --- a/include/linux/pm_opp.h +++ b/include/linux/pm_opp.h @@ -157,7 +157,7 @@ struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev, unsigned int *level); struct dev_pm_opp *dev_pm_opp_find_level_floor(struct device *dev, - unsigned long *level); + unsigned int *level); struct dev_pm_opp *dev_pm_opp_find_bw_ceil(struct device *dev, unsigned int *bw, int index); @@ -324,7 +324,7 @@ static inline struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev, } static inline struct dev_pm_opp *dev_pm_opp_find_level_floor(struct device *dev, - unsigned long *level) + unsigned int *level) { return ERR_PTR(-EOPNOTSUPP); } |