Skip to content

Commit

Permalink
drivers:staging:iio: fix checkpatch complaint about space before comma
Browse files Browse the repository at this point in the history
Fixes:
drivers/staging/iio/adc/ad7192.c:615: ERROR: space prohibited before that ','
drivers/staging/iio/meter/ade7759.c:119: ERROR: space prohibited before that ','

Signed-off-by: Zachary Warren <conflatulence@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
  • Loading branch information
Zachary Warren authored and Jonathan Cameron committed Nov 22, 2014
1 parent 282a566 commit 56ae98a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/iio/adc/ad7192.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ static int ad7192_probe(struct spi_device *spi)
const struct ad7192_platform_data *pdata = spi->dev.platform_data;
struct ad7192_state *st;
struct iio_dev *indio_dev;
int ret , voltage_uv = 0;
int ret, voltage_uv = 0;

if (!pdata) {
dev_err(&spi->dev, "no platform data?\n");
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/iio/meter/ade7759.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static int ade7759_spi_read_reg_40(struct device *dev,

mutex_lock(&st->buf_lock);
st->tx[0] = ADE7759_READ_REG(reg_address);
memset(&st->tx[1], 0 , 5);
memset(&st->tx[1], 0, 5);

ret = spi_sync_transfer(st->us, xfers, ARRAY_SIZE(xfers));
if (ret) {
Expand Down

0 comments on commit 56ae98a

Please sign in to comment.