linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] iio: lp8788_adc: fix parent device in kernel message
@ 2013-01-03  6:28 Kim, Milo
  2013-01-06 11:38 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Kim, Milo @ 2013-01-03  6:28 UTC (permalink / raw)
  To: Jonathan Cameron; +Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org

Use 'dev' of iio device in a kernel message rather than i2c client device node.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
---
 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;
 	}
 
-- 
1.7.9.5


Best Regards,
Milo



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 2/2] iio: lp8788_adc: fix parent device in kernel message
  2013-01-03  6:28 [PATCH 2/2] iio: lp8788_adc: fix parent device in kernel message Kim, Milo
@ 2013-01-06 11:38 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2013-01-06 11:38 UTC (permalink / raw)
  To: Kim, Milo
  Cc: Jonathan Cameron, linux-iio@vger.kernel.org,
	linux-kernel@vger.kernel.org

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@ti.com>
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;
>  	}
>  
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-06 11:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-03  6:28 [PATCH 2/2] iio: lp8788_adc: fix parent device in kernel message Kim, Milo
2013-01-06 11:38 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).