summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/ti-ads1015.c
diff options
context:
space:
mode:
authorMatt Ranostay <mranostay@gmail.com>2016-06-30 19:33:50 -0700
committerJonathan Cameron <jic23@kernel.org>2016-07-03 13:12:46 +0100
commitf5241dbdfef4404b4e80f0bda13e5c7ceba3ee4a (patch)
tree36d8c7f8fe9b770b3027ca34994b4f38238adb35 /drivers/iio/adc/ti-ads1015.c
parent3629153ce154cf475841d3d0d8cbb1bb1718269e (diff)
downloadop-kernel-dev-f5241dbdfef4404b4e80f0bda13e5c7ceba3ee4a.zip
op-kernel-dev-f5241dbdfef4404b4e80f0bda13e5c7ceba3ee4a.tar.gz
iio: adc: ti-ads1015: add indio_dev->dev.of_node reference
Add the pointer to the device tree node of the ADC so that iio consumers can reference the respective channels. Signed-off-by: Matt Ranostay <mranostay@gmail.com> Acked-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/ti-ads1015.c')
-rw-r--r--drivers/iio/adc/ti-ads1015.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/ti-ads1015.c b/drivers/iio/adc/ti-ads1015.c
index c9574af0..1ef39877 100644
--- a/drivers/iio/adc/ti-ads1015.c
+++ b/drivers/iio/adc/ti-ads1015.c
@@ -586,6 +586,7 @@ static int ads1015_probe(struct i2c_client *client,
mutex_init(&data->lock);
indio_dev->dev.parent = &client->dev;
+ indio_dev->dev.of_node = client->dev.of_node;
indio_dev->name = ADS1015_DRV_NAME;
indio_dev->modes = INDIO_DIRECT_MODE;
OpenPOWER on IntegriCloud