Skip to content

Commit

Permalink
iio/adc: (lp8788) Provide OF node information to iio device
Browse files Browse the repository at this point in the history
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Guenter Roeck authored and Jonathan Cameron committed Feb 2, 2013
1 parent a11e619 commit c3a69e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/iio/adc/lp8788_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ static int lp8788_adc_probe(struct platform_device *pdev)
adc->lp = lp;
platform_set_drvdata(pdev, indio_dev);

indio_dev->dev.of_node = pdev->dev.of_node;
ret = lp8788_iio_map_register(indio_dev, lp->pdata, adc);
if (ret)
goto err_iio_map;
Expand Down

0 comments on commit c3a69e6

Please sign in to comment.