diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/thermal/qcom/qcom-spmi-temp-alarm.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
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");  |