projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06f1041
)
thermal: Change IS_ENABLED to IFDEF in the header file
author
Daniel Lezcano
<daniel.lezcano@linaro.org>
Thu, 2 Apr 2020 14:27:45 +0000
(16:27 +0200)
committer
Daniel Lezcano
<daniel.lezcano@linaro.org>
Tue, 14 Apr 2020 09:41:12 +0000
(11:41 +0200)
The thermal framework can not be compiled as a module. The IS_ENABLED
macro is useless here and can be replaced by an ifdef.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Link:
https://lore.kernel.org/r/20200402142747.8307-7-daniel.lezcano@linaro.org
include/linux/thermal.h
patch
|
blob
|
history
diff --git
a/include/linux/thermal.h
b/include/linux/thermal.h
index 47e745c5dfca743d3e678412205cd46d946b5b5c..12df9ff0182d92548a119eee0a1e64ef99ef1bb2 100644
(file)
--- a/
include/linux/thermal.h
+++ b/
include/linux/thermal.h
@@
-383,7
+383,7
@@
void devm_thermal_zone_of_sensor_unregister(struct device *dev,
#endif
-#if
IS_ENABLED(CONFIG_THERMAL)
+#if
def CONFIG_THERMAL
struct thermal_zone_device *thermal_zone_device_register(const char *, int, int,
void *, struct thermal_zone_device_ops *,
struct thermal_zone_params *, int, int);