Skip to content

Commit 868dc3c

Browse files
t-8chgroeck
authored andcommitted
thermal: core: Add stub for thermal_zone_device_update()
To simplify the !CONFIG_THERMAL case in the hwmon core, add a !CONFIG_THERMAL stub for thermal_zone_device_update(). Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
1 parent 232ba88 commit 868dc3c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/linux/thermal.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,10 @@ static inline struct thermal_zone_device *thermal_tripless_zone_device_register(
295295
static inline void thermal_zone_device_unregister(struct thermal_zone_device *tz)
296296
{ }
297297

298+
static inline void thermal_zone_device_update(struct thermal_zone_device *tz,
299+
enum thermal_notify_event event)
300+
{ }
301+
298302
static inline struct thermal_cooling_device *
299303
thermal_cooling_device_register(const char *type, void *devdata,
300304
const struct thermal_cooling_device_ops *ops)

0 commit comments

Comments
 (0)