Skip to content

Commit

Permalink
iio: adc: ti-ads1015: add indio_dev->dev.of_node reference
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Daniel Baluta <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
  • Loading branch information
mranostay authored and jic23 committed Jul 3, 2016
1 parent 3629153 commit f5241db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/iio/adc/ti-ads1015.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f5241db

Please sign in to comment.