summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHernán Gonzalez <hernan@vanguardiasur.com.ar>2018-04-13 18:36:39 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-04-15 17:02:48 +0200
commit2470bf57fc5fa42d97fae2f009375377ebb389d8 (patch)
treed05a8c4e8d6b2c0b994611d2315a64934c0d903d
parentstaging: iio: ad7746: Automatically swap values in readings/writings (diff)
downloadlinux-2470bf57fc5fa42d97fae2f009375377ebb389d8.tar.xz
linux-2470bf57fc5fa42d97fae2f009375377ebb389d8.zip
staging: iio: ad7746: Adjust arguments to match open parenthesis
Clear a couple more checkpatch.pl CHECKS. Signed-off-by: Hernán Gonzalez <hernan@vanguardiasur.com.ar> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r--drivers/staging/iio/cdc/ad7746.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c
index 53e28aeef417..516aa937cf7d 100644
--- a/drivers/staging/iio/cdc/ad7746.c
+++ b/drivers/staging/iio/cdc/ad7746.c
@@ -556,7 +556,8 @@ static int ad7746_read_raw(struct iio_dev *indio_dev,
/* Now read the actual register */
ret = i2c_smbus_read_i2c_block_data(chip->client,
- chan->address >> 8, 3, &chip->data.d8[1]);
+ chan->address >> 8, 3,
+ &chip->data.d8[1]);
if (ret < 0)
goto out;
@@ -614,7 +615,7 @@ static int ad7746_read_raw(struct iio_dev *indio_dev,
break;
case IIO_CHAN_INFO_OFFSET:
*val = AD7746_CAPDAC_DACP(chip->capdac[chan->channel]
- [chan->differential]) * 338646;
+ [chan->differential]) * 338646;
ret = IIO_VAL_INT;
break;