projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iio: maxim_thermocouple: Set parent device
[linux-2.6-block.git]
/
drivers
/
iio
/
temperature
/
maxim_thermocouple.c
diff --git
a/drivers/iio/temperature/maxim_thermocouple.c
b/drivers/iio/temperature/maxim_thermocouple.c
index f962f31a5eb223c4f41d273743ed75f30e648a18..557214202eff35dd870ea085a81161de2982c147 100644
(file)
--- 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;