|
@@ -222,7 +222,7 @@ static int exynos_get_temp(struct thermal_zone_device *thermal,
|
|
|
pr_info("Temperature sensor not initialised\n");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
- data = th_zone->sensor_conf->private_data;
|
|
|
+ data = th_zone->sensor_conf->driver_data;
|
|
|
*temp = th_zone->sensor_conf->read_temperature(data);
|
|
|
/* convert the temperature into millicelsius */
|
|
|
*temp = *temp * MCELSIUS;
|
|
@@ -241,7 +241,7 @@ static int exynos_set_emul_temp(struct thermal_zone_device *thermal,
|
|
|
pr_info("Temperature sensor not initialised\n");
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
- data = th_zone->sensor_conf->private_data;
|
|
|
+ data = th_zone->sensor_conf->driver_data;
|
|
|
if (th_zone->sensor_conf->write_emul_temp)
|
|
|
ret = th_zone->sensor_conf->write_emul_temp(data, temp);
|
|
|
return ret;
|