Skip to content

Commit

Permalink
thermal: Change IS_ENABLED to IFDEF in the header file
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Amit Kucheria <[email protected]>
Acked-by: Zhang Rui <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
dlezcano committed Apr 14, 2020
1 parent 06f1041 commit 6051826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/thermal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6051826

Please sign in to comment.