public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] staging: iio: Fix alignment warning
@ 2024-09-18 17:43 Hridesh MG
  2024-09-18 19:42 ` Steven Davis
  0 siblings, 1 reply; 3+ messages in thread
From: Hridesh MG @ 2024-09-18 17:43 UTC (permalink / raw)
  To: linux-iio, linux-staging, linux-kernel
  Cc: Hridesh MG, Lars-Peter Clausen, Michael Hennerich,
	Jonathan Cameron, Greg Kroah-Hartman

Reported by checkpatch:

CHECK: Alignment should match open parenthesis

Signed-off-by: Hridesh MG <hridesh699@gmail.com>
---
 drivers/staging/iio/impedance-analyzer/ad5933.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c
index 4ae1a7039418..d5544fc2fe98 100644
--- a/drivers/staging/iio/impedance-analyzer/ad5933.c
+++ b/drivers/staging/iio/impedance-analyzer/ad5933.c
@@ -628,9 +628,9 @@ static void ad5933_work(struct work_struct *work)
 		int scan_count = bitmap_weight(indio_dev->active_scan_mask,
 					       iio_get_masklength(indio_dev));
 		ret = ad5933_i2c_read(st->client,
-				test_bit(1, indio_dev->active_scan_mask) ?
-				AD5933_REG_REAL_DATA : AD5933_REG_IMAG_DATA,
-				scan_count * 2, (u8 *)buf);
+				      test_bit(1, indio_dev->active_scan_mask) ?
+				      AD5933_REG_REAL_DATA : AD5933_REG_IMAG_DATA,
+				      scan_count * 2, (u8 *)buf);
 		if (ret)
 			return;
 
-- 
2.46.0


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

* Re: [PATCH] staging: iio: Fix alignment warning
  2024-09-18 17:43 [PATCH] staging: iio: Fix alignment warning Hridesh MG
@ 2024-09-18 19:42 ` Steven Davis
  2024-09-28 15:21   ` Jonathan Cameron
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Davis @ 2024-09-18 19:42 UTC (permalink / raw)
  To: hridesh699
  Cc: Michael.Hennerich, gregkh, jic23, lars, linux-iio, linux-kernel,
	linux-staging

On Wed, 18 Sep 2024 at 23:13:19 +0530, Hridesh MG wrote:
> Reported by checkpatch:
>
> CHECK: Alignment should match open parenthesis
>
> Signed-off-by: Hridesh MG <hridesh699@gmail.com>
  Acked-by: Steven Davis <goldside000@outlook.com>
> ---
> drivers/staging/iio/impedance-analyzer/ad5933.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)

> diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c
> index 4ae1a7039418..d5544fc2fe98 100644
> --- a/drivers/staging/iio/impedance-analyzer/ad5933.c
> +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c
> @@ -628,9 +628,9 @@ static void ad5933_work(struct work_struct *work)
> 		int scan_count = bitmap_weight(indio_dev->active_scan_mask,
> 					       iio_get_masklength(indio_dev));
> 		ret = ad5933_i2c_read(st->client,
> -				test_bit(1, indio_dev->active_scan_mask) ?
> -				AD5933_REG_REAL_DATA : AD5933_REG_IMAG_DATA,
> -				scan_count * 2, (u8 *)buf);
> +				      test_bit(1, indio_dev->active_scan_mask) ?
> +				      AD5933_REG_REAL_DATA : AD5933_REG_IMAG_DATA,
> +				      scan_count * 2, (u8 *)buf);
> 		if (ret)
> 			return;
> 
> -- 
> 2.46.0

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

* Re: [PATCH] staging: iio: Fix alignment warning
  2024-09-18 19:42 ` Steven Davis
@ 2024-09-28 15:21   ` Jonathan Cameron
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Cameron @ 2024-09-28 15:21 UTC (permalink / raw)
  To: Steven Davis
  Cc: hridesh699, Michael.Hennerich, gregkh, lars, linux-iio,
	linux-kernel, linux-staging

On Wed, 18 Sep 2024 15:42:56 -0400
Steven Davis <goldside000@outlook.com> wrote:

> On Wed, 18 Sep 2024 at 23:13:19 +0530, Hridesh MG wrote:
> > Reported by checkpatch:
> >
> > CHECK: Alignment should match open parenthesis
> >
> > Signed-off-by: Hridesh MG <hridesh699@gmail.com>  
>   Acked-by: Steven Davis <goldside000@outlook.com>
Applied.

Thanks,

Jonathan
> > ---
> > drivers/staging/iio/impedance-analyzer/ad5933.c | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)  
> 
> > diff --git a/drivers/staging/iio/impedance-analyzer/ad5933.c b/drivers/staging/iio/impedance-analyzer/ad5933.c
> > index 4ae1a7039418..d5544fc2fe98 100644
> > --- a/drivers/staging/iio/impedance-analyzer/ad5933.c
> > +++ b/drivers/staging/iio/impedance-analyzer/ad5933.c
> > @@ -628,9 +628,9 @@ static void ad5933_work(struct work_struct *work)
> > 		int scan_count = bitmap_weight(indio_dev->active_scan_mask,
> > 					       iio_get_masklength(indio_dev));
> > 		ret = ad5933_i2c_read(st->client,
> > -				test_bit(1, indio_dev->active_scan_mask) ?
> > -				AD5933_REG_REAL_DATA : AD5933_REG_IMAG_DATA,
> > -				scan_count * 2, (u8 *)buf);
> > +				      test_bit(1, indio_dev->active_scan_mask) ?
> > +				      AD5933_REG_REAL_DATA : AD5933_REG_IMAG_DATA,
> > +				      scan_count * 2, (u8 *)buf);
> > 		if (ret)
> > 			return;
> > 
> > -- 
> > 2.46.0  


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

end of thread, other threads:[~2024-09-28 15:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-18 17:43 [PATCH] staging: iio: Fix alignment warning Hridesh MG
2024-09-18 19:42 ` Steven Davis
2024-09-28 15:21   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox