Skip to content

Commit cbc2805

Browse files
committed
thermal: intel: intel_soc_dts_iosf: Pass sensors to update_trip_temp()
After previous changes, update_trip_temp() only uses its dts argument to get to the sensors field in the struct intel_soc_dts_sensor_entry object pointed to by that argument, so pass the value of that field directly to it instead. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
1 parent 0b28ba2 commit cbc2805

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

drivers/thermal/intel/intel_soc_dts_iosf.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ static int sys_get_trip_temp(struct thermal_zone_device *tzd, int trip,
6666
return 0;
6767
}
6868

69-
static int update_trip_temp(struct intel_soc_dts_sensor_entry *dts,
69+
static int update_trip_temp(struct intel_soc_dts_sensors *sensors,
7070
int thres_index, int temp)
7171
{
7272
int status;
@@ -78,7 +78,6 @@ static int update_trip_temp(struct intel_soc_dts_sensor_entry *dts,
7878
u32 store_te_out;
7979
u32 te_out;
8080
u32 int_enable_bit = SOC_DTS_TE_APICA_ENABLE;
81-
struct intel_soc_dts_sensors *sensors = dts->sensors;
8281

8382
if (sensors->intr_type == INTEL_SOC_DTS_INTERRUPT_MSI)
8483
int_enable_bit |= SOC_DTS_TE_MSI_ENABLE;
@@ -162,7 +161,7 @@ static int configure_trip(struct intel_soc_dts_sensor_entry *dts,
162161
{
163162
int ret;
164163

165-
ret = update_trip_temp(dts, thres_index, temp);
164+
ret = update_trip_temp(dts->sensors, thres_index, temp);
166165
if (ret)
167166
return ret;
168167

@@ -182,7 +181,7 @@ static int sys_set_trip_temp(struct thermal_zone_device *tzd, int trip,
182181
return -EINVAL;
183182

184183
mutex_lock(&sensors->dts_update_lock);
185-
status = update_trip_temp(dts, trip, temp);
184+
status = update_trip_temp(sensors, trip, temp);
186185
mutex_unlock(&sensors->dts_update_lock);
187186

188187
return status;

0 commit comments

Comments
 (0)