Re: [PATCH 2/2] iio: lp8788_adc: fix parent device in kernel message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/03/2013 06:28 AM, Kim, Milo wrote:
> Use 'dev' of iio device in a kernel message rather than i2c client device node.
> 
> Signed-off-by: Milo(Woogyom) Kim <milo.kim@xxxxxx>
added to togreg branch of iio.git

Thanks
> ---
>  drivers/iio/adc/lp8788_adc.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/lp8788_adc.c b/drivers/iio/adc/lp8788_adc.c
> index 4c9b0f7..f8bcb1f 100644
> --- a/drivers/iio/adc/lp8788_adc.c
> +++ b/drivers/iio/adc/lp8788_adc.c
> @@ -179,7 +179,7 @@ static int lp8788_iio_map_register(struct iio_dev *indio_dev,
>  
>  	ret = iio_map_array_register(indio_dev, map);
>  	if (ret) {
> -		dev_err(adc->lp->dev, "iio map err: %d\n", ret);
> +		dev_err(&indio_dev->dev, "iio map err: %d\n", ret);
>  		return ret;
>  	}
>  
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux