diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-04-02 17:27:45 +0300 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-04-14 12:41:12 +0300 |
commit | 60518260cab21e749704baa5246ff13f7559fa91 (patch) | |
tree | 8c7e70f07f94b5ab634a31b2fd0457ff00239e9c /include/linux/thermal.h | |
parent | 06f1041f5023c00a54f63c269b997c61d1b3b739 (diff) | |
download | linux-60518260cab21e749704baa5246ff13f7559fa91.tar.xz |
thermal: Change IS_ENABLED to IFDEF in the header file
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
Diffstat (limited to 'include/linux/thermal.h')
-rw-r--r-- | include/linux/thermal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 47e745c5dfca..12df9ff0182d 100644 --- 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) +#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); |