Skip to content

Commit 754833b

Browse files
committed
OPP: Rearrange entries in pm_opp.h
Rearrange the helper function declarations / definitions to keep them in order of freq, level and then bw. Signed-off-by: Viresh Kumar <[email protected]>
1 parent 06c2afb commit 754833b

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

include/linux/pm_opp.h

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,19 @@ unsigned long dev_pm_opp_get_suspend_opp_freq(struct device *dev);
121121
struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev,
122122
unsigned long freq,
123123
bool available);
124+
124125
struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev,
125126
unsigned long *freq);
126127

128+
struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
129+
unsigned long *freq);
130+
127131
struct dev_pm_opp *dev_pm_opp_find_level_exact(struct device *dev,
128132
unsigned int level);
133+
129134
struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev,
130135
unsigned int *level);
131136

132-
struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
133-
unsigned long *freq);
134-
135137
struct dev_pm_opp *dev_pm_opp_find_bw_ceil(struct device *dev,
136138
unsigned int *bw, int index);
137139

@@ -247,32 +249,32 @@ static inline unsigned long dev_pm_opp_get_suspend_opp_freq(struct device *dev)
247249
return 0;
248250
}
249251

250-
static inline struct dev_pm_opp *dev_pm_opp_find_level_exact(struct device *dev,
251-
unsigned int level)
252+
static inline struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev,
253+
unsigned long freq, bool available)
252254
{
253255
return ERR_PTR(-EOPNOTSUPP);
254256
}
255257

256-
static inline struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev,
257-
unsigned int *level)
258+
static inline struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev,
259+
unsigned long *freq)
258260
{
259261
return ERR_PTR(-EOPNOTSUPP);
260262
}
261263

262-
static inline struct dev_pm_opp *dev_pm_opp_find_freq_exact(struct device *dev,
263-
unsigned long freq, bool available)
264+
static inline struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
265+
unsigned long *freq)
264266
{
265267
return ERR_PTR(-EOPNOTSUPP);
266268
}
267269

268-
static inline struct dev_pm_opp *dev_pm_opp_find_freq_floor(struct device *dev,
269-
unsigned long *freq)
270+
static inline struct dev_pm_opp *dev_pm_opp_find_level_exact(struct device *dev,
271+
unsigned int level)
270272
{
271273
return ERR_PTR(-EOPNOTSUPP);
272274
}
273275

274-
static inline struct dev_pm_opp *dev_pm_opp_find_freq_ceil(struct device *dev,
275-
unsigned long *freq)
276+
static inline struct dev_pm_opp *dev_pm_opp_find_level_ceil(struct device *dev,
277+
unsigned int *level)
276278
{
277279
return ERR_PTR(-EOPNOTSUPP);
278280
}

0 commit comments

Comments
 (0)