mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
iio/adc: (max1363) Provide OF node information to iio device
Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
c3a69e6c11
commit
315ce4b882
1 changed files with 1 additions and 0 deletions
|
@ -1538,6 +1538,7 @@ static int max1363_probe(struct i2c_client *client,
|
|||
goto error_out;
|
||||
}
|
||||
|
||||
indio_dev->dev.of_node = client->dev.of_node;
|
||||
ret = iio_map_array_register(indio_dev, client->dev.platform_data);
|
||||
if (ret < 0)
|
||||
goto error_free_device;
|
||||
|
|
Loading…
Reference in a new issue