From: Thomas Weißschuh Date: Mon, 18 Nov 2024 06:15:58 +0000 (+0100) Subject: thermal: core: Add stub for thermal_zone_device_update() X-Git-Tag: v6.14-rc1~154^2~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=868dc3cd1105bd328be864bf2c409891438df44a;p=thirdparty%2Flinux.git 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 Reviewed-by: Guenter Roeck Acked-by: Rafael J. Wysocki Signed-off-by: Guenter Roeck --- diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 754802478b96a..69f9bedd0ee88 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)