diff options
author | Matt Ranostay <mranostay@gmail.com> | 2016-06-30 19:33:50 -0700 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-07-03 13:12:46 +0100 |
commit | f5241dbdfef4404b4e80f0bda13e5c7ceba3ee4a (patch) | |
tree | 36d8c7f8fe9b770b3027ca34994b4f38238adb35 /drivers/iio/adc | |
parent | 3629153ce154cf475841d3d0d8cbb1bb1718269e (diff) | |
download | lwn-f5241dbdfef4404b4e80f0bda13e5c7ceba3ee4a.tar.gz lwn-f5241dbdfef4404b4e80f0bda13e5c7ceba3ee4a.zip |
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')
-rw-r--r-- | drivers/iio/adc/ti-ads1015.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/ti-ads1015.c b/drivers/iio/adc/ti-ads1015.c index c9574af09882..1ef398770a1f 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; |