diff mbox series

[08/11] thermal: Change IS_ENABLED to IFDEF in the header file

Message ID 20191012065255.23249-8-daniel.lezcano@linaro.org
State Accepted
Commit 60518260cab21e749704baa5246ff13f7559fa91
Headers show
Series [01/11] thermal: Move default governor config option to the internal header | expand

Commit Message

Daniel Lezcano Oct. 12, 2019, 6:52 a.m. UTC
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>

---
 include/linux/thermal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.1
diff mbox series

Patch

diff --git a/include/linux/thermal.h b/include/linux/thermal.h
index 4436addc0e83..d77baa523093 100644
--- a/include/linux/thermal.h
+++ b/include/linux/thermal.h
@@ -384,7 +384,7 @@  void devm_thermal_zone_of_sensor_unregister(struct device *dev,
 
 #endif
 
-#if IS_ENABLED(CONFIG_THERMAL)
+#ifdef 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);