Skip to content

Commit 0cac755

Browse files
committed
thermal: cpu_cooling: Reorder the header file
As the conditions are simplified and unified, it is useless to have different blocks of definitions under the same compiler condition, let's merge the blocks. There is no functional change. Signed-off-by: Daniel Lezcano <[email protected]> Acked-by: Viresh Kumar <[email protected]> Reviewed-by: Amit Kucheria <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f5bf3c0 commit 0cac755

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

include/linux/cpu_cooling.h

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ cpufreq_cooling_register(struct cpufreq_policy *policy);
3333
*/
3434
void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev);
3535

36+
/**
37+
* of_cpufreq_cooling_register - create cpufreq cooling device based on DT.
38+
* @policy: cpufreq policy.
39+
*/
40+
struct thermal_cooling_device *
41+
of_cpufreq_cooling_register(struct cpufreq_policy *policy);
42+
3643
#else /* !CONFIG_CPU_THERMAL */
3744
static inline struct thermal_cooling_device *
3845
cpufreq_cooling_register(struct cpufreq_policy *policy)
@@ -45,16 +52,7 @@ void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev)
4552
{
4653
return;
4754
}
48-
#endif /* CONFIG_CPU_THERMAL */
4955

50-
#ifdef CONFIG_CPU_THERMAL
51-
/**
52-
* of_cpufreq_cooling_register - create cpufreq cooling device based on DT.
53-
* @policy: cpufreq policy.
54-
*/
55-
struct thermal_cooling_device *
56-
of_cpufreq_cooling_register(struct cpufreq_policy *policy);
57-
#else
5856
static inline struct thermal_cooling_device *
5957
of_cpufreq_cooling_register(struct cpufreq_policy *policy)
6058
{

0 commit comments

Comments
 (0)