iio/adc: (lp8788) Provide OF node information to iio device
authorGuenter Roeck <linux@roeck-us.net>
Thu, 31 Jan 2013 21:43:00 +0000 (21:43 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 2 Feb 2013 09:55:21 +0000 (09:55 +0000)
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/lp8788_adc.c

index f8bcb1f5892df23e2c3c4e25289eaa1fc96752ba..d02704ce0091044ef49e6f62f439d0dee6b07ff8 100644 (file)
@@ -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;