aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/temperature/maxim_thermocouple.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/temperature/maxim_thermocouple.c')
-rw-r--r--drivers/iio/temperature/maxim_thermocouple.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/temperature/maxim_thermocouple.c b/drivers/iio/temperature/maxim_thermocouple.c
index f962f31a5eb2..557214202eff 100644
--- a/drivers/iio/temperature/maxim_thermocouple.c
+++ b/drivers/iio/temperature/maxim_thermocouple.c
@@ -231,6 +231,7 @@ static int maxim_thermocouple_probe(struct spi_device *spi)
indio_dev->available_scan_masks = chip->scan_masks;
indio_dev->num_channels = chip->num_channels;
indio_dev->modes = INDIO_DIRECT_MODE;
+ indio_dev->dev.parent = &spi->dev;
data = iio_priv(indio_dev);
data->spi = spi;