summaryrefslogtreecommitdiff
path: root/drivers/thermal/thermal_trace.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-04-02 21:57:57 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-04-08 17:01:20 +0300
commitb1ae92dcfa8ed7d5044c525c3a868fcb4d0f9c0e (patch)
tree3ff05bb0b03bfda6ce3fe106244ab7767f1f2706 /drivers/thermal/thermal_trace.h
parentdaeeb032f42d066a49e07b7f6effc9f51b7a5479 (diff)
downloadlinux-b1ae92dcfa8ed7d5044c525c3a868fcb4d0f9c0e.tar.xz
thermal: core: Make struct thermal_zone_device definition internal
Move the definitions of struct thermal_trip_desc and struct thermal_zone_device to an internal header file in the thermal core, as they don't need to be accessible to any code other than the thermal core and so they don't need to be present in a global header. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Lukasz Luba <lukasz.luba@arm.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/thermal/thermal_trace.h')
-rw-r--r--drivers/thermal/thermal_trace.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thermal/thermal_trace.h b/drivers/thermal/thermal_trace.h
index 459c8ce6cf3b..88a962f560f2 100644
--- a/drivers/thermal/thermal_trace.h
+++ b/drivers/thermal/thermal_trace.h
@@ -9,6 +9,8 @@
#include <linux/thermal.h>
#include <linux/tracepoint.h>
+#include "thermal_core.h"
+
TRACE_DEFINE_ENUM(THERMAL_TRIP_CRITICAL);
TRACE_DEFINE_ENUM(THERMAL_TRIP_HOT);
TRACE_DEFINE_ENUM(THERMAL_TRIP_PASSIVE);