Skip to contentSkip to conversation

Staging: iio: cdc: ad7746.c: Fix an alignment issue over paranthesis.

PATCH In review Sanjana Sanikommu 2 participants 2 messages Mar 17, 2019 – Mar 18, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: iio: cdc: ad7746.c: Fix an alignment issue over paranthesis.

Fix the alignent of the line which match the open paranthesis. Issue found by checkpatch.pl semantic patch results for ad7746.c

---
 drivers/staging/iio/cdc/ad7746.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
drivers/staging/iio/cdc/ad7746.c +8 -6
index 0eb28fea876e..b82c104779e4 100644
@@ -232,14 +232,16 @@ static int ad7746_select_channel(struct iio_dev *indio_dev,
 		delay = ad7746_cap_filter_rate_table[idx][1];
 
 		if (chip->capdac_set != chan->channel) {
-			ret = i2c_smbus_write_byte_data(chip->client,
-				AD7746_REG_CAPDACA,
-				chip->capdac[chan->channel][0]);
+			ret = i2c_smbus_write_byte_data
+				(chip->client,
+				 AD7746_REG_CAPDACA,
+				 chip->capdac[chan->channel][0]);
 			if (ret < 0)
 				return ret;
-			ret = i2c_smbus_write_byte_data(chip->client,
-				AD7746_REG_CAPDACB,
-				chip->capdac[chan->channel][1]);
+			ret = i2c_smbus_write_byte_data
+				(chip->client,
+				 AD7746_REG_CAPDACB,
+				 chip->capdac[chan->channel][1]);
 			if (ret < 0)
 				return ret;
 
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 13 lines · Sanjana Sanikommu

Fix the alignent of the line which match the open paranthesis. Issue found by checkpatch.pl semantic patch results for ad7746.c

---
 drivers/staging/iio/cdc/ad7746.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
drivers/staging/iio/cdc/ad7746.c +0 -0
index 0eb28fea876e..b82c104779e4 100644

drivers/staging/iio/cdc/ad7746.c static int ad7746_select_channel(struct iio_dev *indio_dev, · line 236

Quoted 8 lines
drivers/staging/iio/cdc/ad7746.c +2 -3
@@ -232,14 +232,16 @@ static int ad7746_select_channel(struct iio_dev *indio_dev,
 		delay = ad7746_cap_filter_rate_table[idx][1];
 
 		if (chip->capdac_set != chan->channel) {
-			ret = i2c_smbus_write_byte_data(chip->client,
-				AD7746_REG_CAPDACA,
-				chip->capdac[chan->channel][0]);
+			ret = i2c_smbus_write_byte_data
+				(chip->client,

No, the orifinal first line was ok here, don't move the ( to a new line.

thanks,

greg k-h