summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2013-01-31 21:43:00 +0000
committerJonathan Cameron <jic23@kernel.org>2013-02-02 09:55:21 +0000
commitc3a69e6c11d0c341c5c610be219bfcb56bbfcfb1 (patch)
tree427be1602237b3f78fa27f070e01153a98c42b44 /drivers/iio
parenta11e619b80ff39d081e1a18d26b652e15069503e (diff)
downloadblackbird-obmc-linux-c3a69e6c11d0c341c5c610be219bfcb56bbfcfb1.tar.gz
blackbird-obmc-linux-c3a69e6c11d0c341c5c610be219bfcb56bbfcfb1.zip
iio/adc: (lp8788) Provide OF node information to iio device
Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/lp8788_adc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/adc/lp8788_adc.c b/drivers/iio/adc/lp8788_adc.c
index f8bcb1f5892d..d02704ce0091 100644
--- a/drivers/iio/adc/lp8788_adc.c
+++ b/drivers/iio/adc/lp8788_adc.c
@@ -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;
OpenPOWER on IntegriCloud