diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2018-09-25 05:03:05 -0400 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2018-10-22 20:46:08 -0400 |
commit | a849eecee7ee70db47c4f7e2976432ef16c081e1 (patch) | |
tree | b36d6d78a80b3bce180a55cc71d9571ebab1e444 | |
parent | 7edc5e406f2637ba1f9c93b1e72e0e37f446304b (diff) |
thermal/drivers/hisi: Replace macro name with relevant sensor location
Change the macro name in order to give a better indication of the
sensor location.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
-rw-r--r-- | drivers/thermal/hisi_thermal.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c index a5756f6d13e4..a542cb3b4028 100644 --- a/drivers/thermal/hisi_thermal.c +++ b/drivers/thermal/hisi_thermal.c | |||
@@ -55,8 +55,8 @@ | |||
55 | #define HI3660_TEMP_STEP (205) | 55 | #define HI3660_TEMP_STEP (205) |
56 | #define HI3660_TEMP_LAG (4000) | 56 | #define HI3660_TEMP_LAG (4000) |
57 | 57 | ||
58 | #define HI6220_DEFAULT_SENSOR 2 | 58 | #define HI6220_CLUSTER0_SENSOR 2 |
59 | #define HI3660_DEFAULT_SENSOR 1 | 59 | #define HI3660_BIG_SENSOR 1 |
60 | 60 | ||
61 | struct hisi_thermal_data; | 61 | struct hisi_thermal_data; |
62 | 62 | ||
@@ -406,7 +406,7 @@ static int hi6220_thermal_probe(struct hisi_thermal_data *data) | |||
406 | if (!data->sensor) | 406 | if (!data->sensor) |
407 | return -ENOMEM; | 407 | return -ENOMEM; |
408 | 408 | ||
409 | data->sensor[0].id = HI6220_DEFAULT_SENSOR; | 409 | data->sensor[0].id = HI6220_CLUSTER0_SENSOR; |
410 | data->sensor[0].data = data; | 410 | data->sensor[0].data = data; |
411 | data->nr_sensors = 1; | 411 | data->nr_sensors = 1; |
412 | 412 | ||
@@ -422,7 +422,7 @@ static int hi3660_thermal_probe(struct hisi_thermal_data *data) | |||
422 | if (!data->sensor) | 422 | if (!data->sensor) |
423 | return -ENOMEM; | 423 | return -ENOMEM; |
424 | 424 | ||
425 | data->sensor[0].id = HI3660_DEFAULT_SENSOR; | 425 | data->sensor[0].id = HI3660_BIG_SENSOR; |
426 | data->sensor[0].data = data; | 426 | data->sensor[0].data = data; |
427 | data->nr_sensors = 1; | 427 | data->nr_sensors = 1; |
428 | 428 | ||