diff options
author | Matt Ranostay <mranostay@gmail.com> | 2016-07-03 03:26:33 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-07-03 15:40:08 +0300 |
commit | b541eaff4917a7429cd0e83cb3962383276db357 (patch) | |
tree | 30a37b1331d62e50beb29691e1bfdab50d901fbf /drivers/iio/adc/max1027.c | |
parent | f5241dbdfef4404b4e80f0bda13e5c7ceba3ee4a (diff) | |
download | linux-b541eaff4917a7429cd0e83cb3962383276db357.tar.xz |
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/max1027.c')
-rw-r--r-- | drivers/iio/adc/max1027.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/max1027.c b/drivers/iio/adc/max1027.c index 41d495c6035e..712fbd2b1f16 100644 --- a/drivers/iio/adc/max1027.c +++ b/drivers/iio/adc/max1027.c @@ -426,6 +426,7 @@ static int max1027_probe(struct spi_device *spi) indio_dev->name = spi_get_device_id(spi)->name; indio_dev->dev.parent = &spi->dev; + indio_dev->dev.of_node = spi->dev.of_node; indio_dev->info = &max1027_info; indio_dev->modes = INDIO_DIRECT_MODE; indio_dev->channels = st->info->channels; |