diff mbox series

staging: iio: Fix alignment warning

Message ID 20240918174320.614642-1-hridesh699@gmail.com (mailing list archive)
State Accepted
Headers show
Series staging: iio: Fix alignment warning | expand

Commit Message

Hridesh MG Sept. 18, 2024, 5:43 p.m. UTC
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(-)

Comments

Steven Davis Sept. 18, 2024, 7:42 p.m. UTC | #1
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
Jonathan Cameron Sept. 28, 2024, 3:21 p.m. UTC | #2
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
diff mbox series

Patch

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;