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

Jonathan Cameron jic23 at kernel.org
Sat Feb 2 20:55:46 EST 2013


On 01/31/2013 09:43 PM, Guenter Roeck wrote:
> Signed-off-by: Guenter Roeck <linux at roeck-us.net>
applied to togreg branch of
git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git

> ---
>  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;
> 


More information about the devicetree-discuss mailing list