]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
thermal: core: Remove duplicate struct declaration
authorxueqin Luo <luoxueqin@kylinos.cn>
Thu, 6 Feb 2025 08:14:36 +0000 (16:14 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 25 Mar 2025 19:52:04 +0000 (20:52 +0100)
The struct thermal_zone_device is already declared on line 32, so the
duplicate declaration has been removed.

Fixes: b1ae92dcfa8e ("thermal: core: Make struct thermal_zone_device definition internal")
Signed-off-by: xueqin Luo <luoxueqin@kylinos.cn>
Link: https://lore.kernel.org/r/20250206081436.51785-1-luoxueqin@kylinos.cn
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
include/linux/thermal.h

index 69f9bedd0ee88c0ae065b017f12b014e986d8d55..0b5ed682108073eba2585cd076191ef343aab3be 100644 (file)
@@ -86,8 +86,6 @@ struct thermal_trip {
 #define THERMAL_TRIP_PRIV_TO_INT(_val_)        (uintptr_t)(_val_)
 #define THERMAL_INT_TO_TRIP_PRIV(_val_)        (void *)(uintptr_t)(_val_)
 
-struct thermal_zone_device;
-
 struct cooling_spec {
        unsigned long upper;    /* Highest cooling state  */
        unsigned long lower;    /* Lowest cooling state  */