提交 315ce4b8 编写于 作者: G Guenter Roeck 提交者: Jonathan Cameron

iio/adc: (max1363) Provide OF node information to iio device

Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 c3a69e6c
...@@ -1538,6 +1538,7 @@ static int max1363_probe(struct i2c_client *client, ...@@ -1538,6 +1538,7 @@ static int max1363_probe(struct i2c_client *client,
goto error_out; goto error_out;
} }
indio_dev->dev.of_node = client->dev.of_node;
ret = iio_map_array_register(indio_dev, client->dev.platform_data); ret = iio_map_array_register(indio_dev, client->dev.platform_data);
if (ret < 0) if (ret < 0)
goto error_free_device; goto error_free_device;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册