staging: iio: Fix alignment warning
Subsystems (4)
PATCH 1/1 staging: iio: Fix alignment warning
Reported by checkpatch:
CHECK: Alignment should match open parenthesis
Signed-off-by Hridesh MG <[email protected]>
--- drivers/staging/iio/impedance-analyzer/ad5933.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/iio/impedance-analyzer/ad5933.c +3 -3
@@ -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 ;
Signature · 1 line
2.46.0
Quoted 5 lines · Hridesh MG
Reported by checkpatch:
CHECK: Alignment should match open parenthesis
Signed-off-by Hridesh MG <[email protected]>
Acked-by Steven Davis <[email protected]>
Quoted 23 lines
---
drivers/staging/iio/impedance-analyzer/ad5933.c| 6 +++---1 file changed, 3 insertions(+), 3 deletions(-)drivers/staging/iio/impedance-analyzer/ad5933.c +3
-3@@ -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 ;Signature · 1 line
2.46.0
Quoted 7 lines · On Wed, 18 Sep 2024 15:42:56 -0400 Steven Davis <[email protected]> wrote:
Quoted 5 lines · Hridesh MG
Reported by checkpatch:
CHECK: Alignment should match open parenthesis
Signed-off-by Hridesh MG <[email protected]>Acked-by Steven Davis <[email protected]>
Applied.
Thanks,
Jonathan
Quoted 23 lines
Quoted 23 lines
---
drivers/staging/iio/impedance-analyzer/ad5933.c| 6 +++---1 file changed, 3 insertions(+), 3 deletions(-)drivers/staging/iio/impedance-analyzer/ad5933.c +3
-3@@ -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 ;Signature · 1 line
2.46.0