From: Matt Ranostay Date: Fri, 1 Jul 2016 02:33:50 +0000 (-0700) Subject: iio: adc: ti-ads1015: add indio_dev->dev.of_node reference X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f5241dbdfef4404b4e80f0bda13e5c7ceba3ee4a;p=linux-beck.git 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 Acked-by: Daniel Baluta Signed-off-by: Jonathan Cameron --- 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;