On Fri, Jul 1, 2016 at 5:33 AM, Matt Ranostay <mranostay@xxxxxxxxx> wrote: > Add the pointer to the device tree node of the ADC so that iio > consumers can reference the respective channels. > > Cc: Daniel Baluta <daniel.baluta@xxxxxxxxx> > Signed-off-by: Matt Ranostay <mranostay@xxxxxxxxx> Acked-by: Daniel Baluta <daniel.baluta@xxxxxxxxx> > --- > drivers/iio/adc/ti-ads1015.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/iio/adc/ti-ads1015.c b/drivers/iio/adc/ti-ads1015.c > index 8be192a84893..6f75a4aa67c1 100644 > --- a/drivers/iio/adc/ti-ads1015.c > +++ b/drivers/iio/adc/ti-ads1015.c > @@ -585,6 +585,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; > > -- > 2.7.4 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-iio" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html