linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] iio: adc: twl6030-gpadc: Remove redundant of_match_ptr
@ 2013-10-21  8:25 Sachin Kamat
  2013-10-23 16:51 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Sachin Kamat @ 2013-10-21  8:25 UTC (permalink / raw)
  To: linux-iio; +Cc: jic23, sachin.kamat

of_twl6030_match_tbl is always compiled in. Hence of_match_ptr is
not necessary.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/iio/adc/twl6030-gpadc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/adc/twl6030-gpadc.c b/drivers/iio/adc/twl6030-gpadc.c
index 0ea96c0..2edfc7b 100644
--- a/drivers/iio/adc/twl6030-gpadc.c
+++ b/drivers/iio/adc/twl6030-gpadc.c
@@ -887,7 +887,7 @@ static int twl6030_gpadc_probe(struct platform_device *pdev)
 	int irq;
 	int ret;
 
-	match = of_match_device(of_match_ptr(of_twl6030_match_tbl), dev);
+	match = of_match_device(of_twl6030_match_tbl, dev);
 	if (!match)
 		return -EINVAL;
 
-- 
1.7.9.5

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

* Re: [PATCH 1/1] iio: adc: twl6030-gpadc: Remove redundant of_match_ptr
  2013-10-21  8:25 [PATCH 1/1] iio: adc: twl6030-gpadc: Remove redundant of_match_ptr Sachin Kamat
@ 2013-10-23 16:51 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2013-10-23 16:51 UTC (permalink / raw)
  To: Sachin Kamat, linux-iio

On 10/21/13 09:25, Sachin Kamat wrote:
> of_twl6030_match_tbl is always compiled in. Hence of_match_ptr is
> not necessary.
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Applied to the togreg branch of iio.git

thanks,
> ---
>  drivers/iio/adc/twl6030-gpadc.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/adc/twl6030-gpadc.c b/drivers/iio/adc/twl6030-gpadc.c
> index 0ea96c0..2edfc7b 100644
> --- a/drivers/iio/adc/twl6030-gpadc.c
> +++ b/drivers/iio/adc/twl6030-gpadc.c
> @@ -887,7 +887,7 @@ static int twl6030_gpadc_probe(struct platform_device *pdev)
>  	int irq;
>  	int ret;
>  
> -	match = of_match_device(of_match_ptr(of_twl6030_match_tbl), dev);
> +	match = of_match_device(of_twl6030_match_tbl, dev);
>  	if (!match)
>  		return -EINVAL;
>  
> 

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

end of thread, other threads:[~2013-10-23 15:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-21  8:25 [PATCH 1/1] iio: adc: twl6030-gpadc: Remove redundant of_match_ptr Sachin Kamat
2013-10-23 16:51 ` 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).