Staging: iio: cdc: ad7746.c: Fix an alignment issue over paranthesis.
Subsystems (4)
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
Signed-off-by Sanjana Sanikommu <[email protected]>
--- drivers/staging/iio/cdc/ad7746.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
drivers/staging/iio/cdc/ad7746.c +8 -6
@@ -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
Greg KH
maintainerQuoted 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.cSigned-off-by Sanjana Sanikommu <[email protected]>--- drivers/staging/iio/cdc/ad7746.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)drivers/staging/iio/cdc/ad7746.c +0
-0
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