mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
OPP: Rearrange entries in pm_opp.h
[ Upstream commit 754833b319 ]
Rearrange the helper function declarations / definitions to keep them in
order of freq, level and then bw.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Stable-dep-of: b44b9bc7cab2 ("OPP: fix dev_pm_opp_find_bw_*() when bandwidth table not initialized")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0764df6b80
commit
4dff070117
@@ -121,17 +121,19 @@ unsigned long dev_pm_opp_get_suspend_opp_freq(struct device *dev);
|
|||||||
struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev,
|
struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev,
|
||||||
unsigned long freq,
|
unsigned long freq,
|
||||||
bool available);
|
bool available);
|
||||||
|
|
||||||
struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev,
|
struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev,
|
||||||
unsigned long *freq);
|
unsigned long *freq);
|
||||||
|
|
||||||
struct dev_pm_opp *dev_pm_opp_find_level_exact(struct device *dev,
|
|
||||||
unsigned int level);
|
|
||||||
struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev,
|
|
||||||
unsigned int *level);
|
|
||||||
|
|
||||||
struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
|
struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
|
||||||
unsigned long *freq);
|
unsigned long *freq);
|
||||||
|
|
||||||
|
struct dev_pm_opp *dev_pm_opp_find_level_exact(struct device *dev,
|
||||||
|
unsigned int level);
|
||||||
|
|
||||||
|
struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev,
|
||||||
|
unsigned int *level);
|
||||||
|
|
||||||
struct dev_pm_opp *dev_pm_opp_find_bw_ceil(struct device *dev,
|
struct dev_pm_opp *dev_pm_opp_find_bw_ceil(struct device *dev,
|
||||||
unsigned int *bw, int index);
|
unsigned int *bw, int index);
|
||||||
|
|
||||||
@@ -247,18 +249,6 @@ static inline unsigned long dev_pm_opp_get_suspend_opp_freq(struct device *dev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct dev_pm_opp *dev_pm_opp_find_level_exact(struct device *dev,
|
|
||||||
unsigned int level)
|
|
||||||
{
|
|
||||||
return ERR_PTR(-EOPNOTSUPP);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev,
|
|
||||||
unsigned int *level)
|
|
||||||
{
|
|
||||||
return ERR_PTR(-EOPNOTSUPP);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev,
|
static inline struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev,
|
||||||
unsigned long freq, bool available)
|
unsigned long freq, bool available)
|
||||||
{
|
{
|
||||||
@@ -277,6 +267,18 @@ static inline struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
|
|||||||
return ERR_PTR(-EOPNOTSUPP);
|
return ERR_PTR(-EOPNOTSUPP);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline struct dev_pm_opp *dev_pm_opp_find_level_exact(struct device *dev,
|
||||||
|
unsigned int level)
|
||||||
|
{
|
||||||
|
return ERR_PTR(-EOPNOTSUPP);
|
||||||
|
}
|
||||||
|
|
||||||
|
static inline struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev,
|
||||||
|
unsigned int *level)
|
||||||
|
{
|
||||||
|
return ERR_PTR(-EOPNOTSUPP);
|
||||||
|
}
|
||||||
|
|
||||||
static inline struct dev_pm_opp *dev_pm_opp_find_bw_ceil(struct device *dev,
|
static inline struct dev_pm_opp *dev_pm_opp_find_bw_ceil(struct device *dev,
|
||||||
unsigned int *bw, int index)
|
unsigned int *bw, int index)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user