]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - include/linux/device_cooling.h
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux...
[karo-tx-linux.git] / include / linux / device_cooling.h
1 /*
2  * Copyright (C) 2013 Freescale Semiconductor, Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  */
9
10 #ifndef __DEVICE_THERMAL_H__
11 #define __DEVICE_THERMAL_H__
12
13 #include <linux/thermal.h>
14
15 #ifdef CONFIG_DEVICE_THERMAL
16 int register_devfreq_cooling_notifier(struct notifier_block *nb);
17 int unregister_devfreq_cooling_notifier(struct notifier_block *nb);
18 struct thermal_cooling_device *devfreq_cooling_register(void);
19 void devfreq_cooling_unregister(struct thermal_cooling_device *cdev);
20 #else
21 static inline
22 int register_devfreq_cooling_notifier(struct notifier_block *nb)
23 {
24         return 0;
25 }
26
27 static inline
28 int unregister_devfreq_cooling_notifier(struct notifier_block *nb)
29 {
30         return 0;
31 }
32
33 static inline
34 struct thermal_cooling_device *devfreq_cooling_register(void)
35 {
36         return NULL;
37 }
38
39 static inline
40 void devfreq_cooling_unregister(struct thermal_cooling_device *cdev)
41 {
42         return;
43 }
44 #endif
45 #endif /* __DEVICE_THERMAL_H__ */