[PATCH 04/11] iio/adc: (lp8788) Provide OF node information to iio device

Guenter Roeck linux at roeck-us.net
Fri Feb 1 08:43:01 EST 2013


Signed-off-by: Guenter Roeck <linux at roeck-us.net>
---
 drivers/iio/adc/lp8788_adc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iio/adc/lp8788_adc.c b/drivers/iio/adc/lp8788_adc.c
index 72955e4..e5293d0 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;
-- 
1.7.9.7



More information about the devicetree-discuss mailing list