mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
thermal: add the support for building the generic thermal as a module
Build the generic thermal driver as module "thermal_sys". Make ACPI thermal, video, processor and fan SELECT the generic thermal driver, as these drivers rely on it to build the sysfs I/F. Signed-off-by: Zhang Rui <rui.zhang@intel.com> Acked-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
a01e035ebb
commit
63c4ec905d
6 changed files with 9 additions and 18 deletions
|
@ -88,24 +88,10 @@ int thermal_zone_bind_cooling_device(struct thermal_zone_device *, int,
|
|||
struct thermal_cooling_device *);
|
||||
int thermal_zone_unbind_cooling_device(struct thermal_zone_device *, int,
|
||||
struct thermal_cooling_device *);
|
||||
|
||||
#ifdef CONFIG_THERMAL
|
||||
struct thermal_cooling_device *thermal_cooling_device_register(char *, void *,
|
||||
struct
|
||||
thermal_cooling_device_ops
|
||||
*);
|
||||
void thermal_cooling_device_unregister(struct thermal_cooling_device *);
|
||||
#else
|
||||
static inline struct thermal_cooling_device
|
||||
*thermal_cooling_device_register(char *c, void *v,
|
||||
struct thermal_cooling_device_ops *t)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
static inline
|
||||
void thermal_cooling_device_unregister(struct thermal_cooling_device *t)
|
||||
{
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif /* __THERMAL_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue