summaryrefslogtreecommitdiff
path: root/drivers/iio/adc
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-03-31 20:32:43 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-03-31 20:32:43 +0300
commitd4d8516624e1042d33011cf93b6e9c220a22c9f0 (patch)
tree363a530076d20796032f24cef6774e66e573cd37 /drivers/iio/adc
parentae817e618d4b5d221daae34d32a39476e4bdcb36 (diff)
parent85b52122e5426e15602c0b979012e50d7271ea1a (diff)
downloadlinux-d4d8516624e1042d33011cf93b6e9c220a22c9f0.tar.xz
Merge back Intel thermal driver changes for 6.4-rc1.
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r--drivers/iio/adc/sun4i-gpadc-iio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/sun4i-gpadc-iio.c b/drivers/iio/adc/sun4i-gpadc-iio.c
index a6ade70dedf8..a5322550c422 100644
--- a/drivers/iio/adc/sun4i-gpadc-iio.c
+++ b/drivers/iio/adc/sun4i-gpadc-iio.c
@@ -414,7 +414,7 @@ static int sun4i_gpadc_runtime_resume(struct device *dev)
static int sun4i_gpadc_get_temp(struct thermal_zone_device *tz, int *temp)
{
- struct sun4i_gpadc_iio *info = tz->devdata;
+ struct sun4i_gpadc_iio *info = thermal_zone_device_priv(tz);
int val, scale, offset;
if (sun4i_gpadc_temp_read(info->indio_dev, &val))