diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2024-11-18 07:15:58 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-12-14 08:00:44 -0800 |
commit | 868dc3cd1105bd328be864bf2c409891438df44a (patch) | |
tree | 5e0e8776b716866f807a2d207e7227f82581fa59 | |
parent | 232ba88182083b4410df41cf310c9a16b84e547e (diff) |
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 <linux@weissschuh.net>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | include/linux/thermal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 754802478b96..69f9bedd0ee8 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -295,6 +295,10 @@ static inline struct thermal_zone_device *thermal_tripless_zone_device_register( static inline void thermal_zone_device_unregister(struct thermal_zone_device *tz) { } +static inline void thermal_zone_device_update(struct thermal_zone_device *tz, + enum thermal_notify_event event) +{ } + static inline struct thermal_cooling_device * thermal_cooling_device_register(const char *type, void *devdata, const struct thermal_cooling_device_ops *ops) |