[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20200710135154.181454-3-thara.gopinath@linaro.org>
Date: Fri, 10 Jul 2020 09:51:52 -0400
From: Thara Gopinath <thara.gopinath@...aro.org>
To: daniel.lezcano@...aro.org, rui.zhang@...el.com, robh+dt@...nel.org
Cc: linux-pm@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [RFC PATCH 2/4] thermal: Add support for cold trip point
Add new trip type indicating cold THERMAL_TRIP_COLD
Signed-off-by: Thara Gopinath <thara.gopinath@...aro.org>
---
drivers/thermal/thermal_of.c | 1 +
include/uapi/linux/thermal.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c
index 69ef12f852b7..b4e564a422fe 100644
--- a/drivers/thermal/thermal_of.c
+++ b/drivers/thermal/thermal_of.c
@@ -754,6 +754,7 @@ static const char * const trip_types[] = {
[THERMAL_TRIP_ACTIVE] = "active",
[THERMAL_TRIP_PASSIVE] = "passive",
[THERMAL_TRIP_HOT] = "hot",
+ [THERMAL_TRIP_COLD] = "cold",
[THERMAL_TRIP_CRITICAL] = "critical",
};
diff --git a/include/uapi/linux/thermal.h b/include/uapi/linux/thermal.h
index c105054cbb57..7ad62a33457f 100644
--- a/include/uapi/linux/thermal.h
+++ b/include/uapi/linux/thermal.h
@@ -13,6 +13,7 @@ enum thermal_trip_type {
THERMAL_TRIP_ACTIVE = 0,
THERMAL_TRIP_PASSIVE,
THERMAL_TRIP_HOT,
+ THERMAL_TRIP_COLD,
THERMAL_TRIP_CRITICAL,
};
--
2.25.1
Powered by blists - more mailing lists