diff options
Diffstat (limited to 'drivers/thermal/qcom/qcom-spmi-temp-alarm.c')
| -rw-r--r-- | drivers/thermal/qcom/qcom-spmi-temp-alarm.c | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c index 101c75d0e13f..0f88e98428ac 100644 --- a/drivers/thermal/qcom/qcom-spmi-temp-alarm.c +++ b/drivers/thermal/qcom/qcom-spmi-temp-alarm.c @@ -187,7 +187,7 @@ static int qpnp_tm_update_temp_no_adc(struct qpnp_tm_chip *chip)  static int qpnp_tm_get_temp(struct thermal_zone_device *tz, int *temp)  { -	struct qpnp_tm_chip *chip = tz->devdata; +	struct qpnp_tm_chip *chip = thermal_zone_device_priv(tz);  	int ret, mili_celsius;  	if (!temp) @@ -265,7 +265,7 @@ skip:  static int qpnp_tm_set_trip_temp(struct thermal_zone_device *tz, int trip_id, int temp)  { -	struct qpnp_tm_chip *chip = tz->devdata; +	struct qpnp_tm_chip *chip = thermal_zone_device_priv(tz);  	struct thermal_trip trip;  	int ret; @@ -459,7 +459,7 @@ static int qpnp_tm_probe(struct platform_device *pdev)  		return ret;  	} -	if (devm_thermal_add_hwmon_sysfs(chip->tz_dev)) +	if (devm_thermal_add_hwmon_sysfs(&pdev->dev, chip->tz_dev))  		dev_warn(&pdev->dev,  			 "Failed to add hwmon sysfs attributes\n");  |