summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/hi8435.c
diff options
context:
space:
mode:
authorMatt Ranostay <mranostay@gmail.com>2016-07-03 02:26:33 +0200
committerJonathan Cameron <jic23@kernel.org>2016-07-03 14:40:08 +0200
commitb541eaff4917a7429cd0e83cb3962383276db357 (patch)
tree30a37b1331d62e50beb29691e1bfdab50d901fbf /drivers/iio/adc/hi8435.c
parentiio: adc: ti-ads1015: add indio_dev->dev.of_node reference (diff)
downloadlinux-b541eaff4917a7429cd0e83cb3962383276db357.tar.xz
linux-b541eaff4917a7429cd0e83cb3962383276db357.zip
iio: adc: add missing of_node references to iio_dev
Adding missing indio_dev->dev.of_node references to allow iio consumers to access the device channels. Signed-off-by: Matt Ranostay <mranostay@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/hi8435.c')
-rw-r--r--drivers/iio/adc/hi8435.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/hi8435.c b/drivers/iio/adc/hi8435.c
index c62bdb0a809e..678e8c7ea763 100644
--- a/drivers/iio/adc/hi8435.c
+++ b/drivers/iio/adc/hi8435.c
@@ -455,6 +455,7 @@ static int hi8435_probe(struct spi_device *spi)
mutex_init(&priv->lock);
idev->dev.parent = &spi->dev;
+ idev->dev.of_node = spi->dev.of_node;
idev->name = spi_get_device_id(spi)->name;
idev->modes = INDIO_DIRECT_MODE;
idev->info = &hi8435_info;