linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers:staging:iio:cdc: Style fix.
@ 2017-01-23 13:14 Anthony Brandon
  2017-01-28 12:18 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony Brandon @ 2017-01-23 13:14 UTC (permalink / raw)
  To: lars, linux-iio; +Cc: Anthony Brandon

Align parameters to parentheses.

Signed-off-by: Anthony Brandon <anthony@amarulasolutions.com>
---
 drivers/staging/iio/cdc/ad7150.c | 30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/drivers/staging/iio/cdc/ad7150.c b/drivers/staging/iio/cdc/ad7150.c
index c886751..ca72af3 100644
--- a/drivers/staging/iio/cdc/ad7150.c
+++ b/drivers/staging/iio/cdc/ad7150.c
@@ -610,27 +610,27 @@ static int ad7150_probe(struct i2c_client *client,
 
 	if (client->irq) {
 		ret = devm_request_threaded_irq(&client->dev, client->irq,
-					   NULL,
-					   &ad7150_event_handler,
-					   IRQF_TRIGGER_RISING |
-					   IRQF_TRIGGER_FALLING |
-					   IRQF_ONESHOT,
-					   "ad7150_irq1",
-					   indio_dev);
+						NULL,
+						&ad7150_event_handler,
+						IRQF_TRIGGER_RISING |
+						IRQF_TRIGGER_FALLING |
+						IRQF_ONESHOT,
+						"ad7150_irq1",
+						indio_dev);
 		if (ret)
 			return ret;
 	}
 
 	if (client->dev.platform_data) {
 		ret = devm_request_threaded_irq(&client->dev, *(unsigned int *)
-					   client->dev.platform_data,
-					   NULL,
-					   &ad7150_event_handler,
-					   IRQF_TRIGGER_RISING |
-					   IRQF_TRIGGER_FALLING |
-					   IRQF_ONESHOT,
-					   "ad7150_irq2",
-					   indio_dev);
+						client->dev.platform_data,
+						NULL,
+						&ad7150_event_handler,
+						IRQF_TRIGGER_RISING |
+						IRQF_TRIGGER_FALLING |
+						IRQF_ONESHOT,
+						"ad7150_irq2",
+						indio_dev);
 		if (ret)
 			return ret;
 	}
-- 
2.7.4


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

* Re: [PATCH] drivers:staging:iio:cdc: Style fix.
  2017-01-23 13:14 [PATCH] drivers:staging:iio:cdc: Style fix Anthony Brandon
@ 2017-01-28 12:18 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2017-01-28 12:18 UTC (permalink / raw)
  To: Anthony Brandon, lars, linux-iio

On 23/01/17 13:14, Anthony Brandon wrote:
> Align parameters to parentheses.
> 
> Signed-off-by: Anthony Brandon <anthony@amarulasolutions.com>
Applied to the togreg branch of iio.git.

Thanks,

Jonathan
> ---
>  drivers/staging/iio/cdc/ad7150.c | 30 +++++++++++++++---------------
>  1 file changed, 15 insertions(+), 15 deletions(-)
> 
> diff --git a/drivers/staging/iio/cdc/ad7150.c b/drivers/staging/iio/cdc/ad7150.c
> index c886751..ca72af3 100644
> --- a/drivers/staging/iio/cdc/ad7150.c
> +++ b/drivers/staging/iio/cdc/ad7150.c
> @@ -610,27 +610,27 @@ static int ad7150_probe(struct i2c_client *client,
>  
>  	if (client->irq) {
>  		ret = devm_request_threaded_irq(&client->dev, client->irq,
> -					   NULL,
> -					   &ad7150_event_handler,
> -					   IRQF_TRIGGER_RISING |
> -					   IRQF_TRIGGER_FALLING |
> -					   IRQF_ONESHOT,
> -					   "ad7150_irq1",
> -					   indio_dev);
> +						NULL,
> +						&ad7150_event_handler,
> +						IRQF_TRIGGER_RISING |
> +						IRQF_TRIGGER_FALLING |
> +						IRQF_ONESHOT,
> +						"ad7150_irq1",
> +						indio_dev);
>  		if (ret)
>  			return ret;
>  	}
>  
>  	if (client->dev.platform_data) {
>  		ret = devm_request_threaded_irq(&client->dev, *(unsigned int *)
> -					   client->dev.platform_data,
> -					   NULL,
> -					   &ad7150_event_handler,
> -					   IRQF_TRIGGER_RISING |
> -					   IRQF_TRIGGER_FALLING |
> -					   IRQF_ONESHOT,
> -					   "ad7150_irq2",
> -					   indio_dev);
> +						client->dev.platform_data,
> +						NULL,
> +						&ad7150_event_handler,
> +						IRQF_TRIGGER_RISING |
> +						IRQF_TRIGGER_FALLING |
> +						IRQF_ONESHOT,
> +						"ad7150_irq2",
> +						indio_dev);
>  		if (ret)
>  			return ret;
>  	}
> 


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

end of thread, other threads:[~2017-01-28 12:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-23 13:14 [PATCH] drivers:staging:iio:cdc: Style fix Anthony Brandon
2017-01-28 12:18 ` 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).