Skip to content

Commit 514acd0

Browse files
andrzejtpdlezcano
authored andcommitted
thermal: Make thermal_zone_device_is_enabled() available to core only
This function is not needed by drivers. Signed-off-by: Andrzej Pietrasiewicz <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent d92ed2c commit 514acd0

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

drivers/thermal/thermal_core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,6 @@ int thermal_zone_device_is_enabled(struct thermal_zone_device *tz)
519519

520520
return mode == THERMAL_DEVICE_ENABLED;
521521
}
522-
EXPORT_SYMBOL_GPL(thermal_zone_device_is_enabled);
523522

524523
void thermal_zone_device_update(struct thermal_zone_device *tz,
525524
enum thermal_notify_event event)

drivers/thermal/thermal_core.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,6 @@ of_thermal_get_trip_points(struct thermal_zone_device *tz)
166166
}
167167
#endif
168168

169+
int thermal_zone_device_is_enabled(struct thermal_zone_device *tz);
170+
169171
#endif /* __THERMAL_CORE_H__ */

include/linux/thermal.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,6 @@ void thermal_cdev_update(struct thermal_cooling_device *);
418418
void thermal_notify_framework(struct thermal_zone_device *, int);
419419
int thermal_zone_device_enable(struct thermal_zone_device *tz);
420420
int thermal_zone_device_disable(struct thermal_zone_device *tz);
421-
int thermal_zone_device_is_enabled(struct thermal_zone_device *tz);
422421
#else
423422
static inline struct thermal_zone_device *thermal_zone_device_register(
424423
const char *type, int trips, int mask, void *devdata,
@@ -472,10 +471,6 @@ static inline int thermal_zone_device_enable(struct thermal_zone_device *tz)
472471

473472
static inline int thermal_zone_device_disable(struct thermal_zone_device *tz)
474473
{ return -ENODEV; }
475-
476-
static inline int
477-
thermal_zone_device_is_enabled(struct thermal_zone_device *tz)
478-
{ return -ENODEV; }
479474
#endif /* CONFIG_THERMAL */
480475

481476
#endif /* __THERMAL_H__ */

0 commit comments

Comments
 (0)