summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/mcp3422.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/adc/mcp3422.c')
-rw-r--r--drivers/iio/adc/mcp3422.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/mcp3422.c b/drivers/iio/adc/mcp3422.c
index d1172dc1e8e2..254135e07792 100644
--- a/drivers/iio/adc/mcp3422.c
+++ b/drivers/iio/adc/mcp3422.c
@@ -352,6 +352,7 @@ static int mcp3422_probe(struct i2c_client *client,
mutex_init(&adc->lock);
indio_dev->dev.parent = &client->dev;
+ indio_dev->dev.of_node = client->dev.of_node;
indio_dev->name = dev_name(&client->dev);
indio_dev->modes = INDIO_DIRECT_MODE;
indio_dev->info = &mcp3422_info;