Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5241dbd authored by Matt Ranostay's avatar Matt Ranostay Committed by Jonathan Cameron
Browse files

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: default avatarMatt Ranostay <mranostay@gmail.com>
Acked-by: default avatarDaniel Baluta <daniel.baluta@intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 3629153c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;