Skip to content

Commit

Permalink
thermal/drivers/hisi: Replace macro name with relevant sensor location
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Lezcano authored and Eduardo Valentin committed Oct 23, 2018
1 parent 7edc5e4 commit a849eec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/thermal/hisi_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit a849eec

Please sign in to comment.