lkml.org 
[lkml]   [2018]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 07/14] thermal/drivers/hisi: Replace macro name with relevant sensor location
Date
Change the macro name in order to give a better indication of the
sensor location.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
drivers/thermal/hisi_thermal.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c
index a5756f6..a542cb3 100644
--- a/drivers/thermal/hisi_thermal.c
+++ b/drivers/thermal/hisi_thermal.c
@@ -55,8 +55,8 @@
#define HI3660_TEMP_STEP (205)
#define HI3660_TEMP_LAG (4000)

-#define HI6220_DEFAULT_SENSOR 2
-#define HI3660_DEFAULT_SENSOR 1
+#define HI6220_CLUSTER0_SENSOR 2
+#define HI3660_BIG_SENSOR 1

struct hisi_thermal_data;

@@ -406,7 +406,7 @@ static int hi6220_thermal_probe(struct hisi_thermal_data *data)
if (!data->sensor)
return -ENOMEM;

- data->sensor[0].id = HI6220_DEFAULT_SENSOR;
+ data->sensor[0].id = HI6220_CLUSTER0_SENSOR;
data->sensor[0].data = data;
data->nr_sensors = 1;

@@ -422,7 +422,7 @@ static int hi3660_thermal_probe(struct hisi_thermal_data *data)
if (!data->sensor)
return -ENOMEM;

- data->sensor[0].id = HI3660_DEFAULT_SENSOR;
+ data->sensor[0].id = HI3660_BIG_SENSOR;
data->sensor[0].data = data;
data->nr_sensors = 1;

--
2.7.4
\
 
 \ /
  Last update: 2018-09-25 11:05    [W:0.136 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site