drivers:staging:iio: fix checkpatch complaint about space before comma
authorZachary Warren <conflatulence@gmail.com>
Sat, 22 Nov 2014 11:19:31 +0000 (22:19 +1100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 22 Nov 2014 11:21:42 +0000 (11:21 +0000)
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>
drivers/staging/iio/adc/ad7192.c
drivers/staging/iio/meter/ade7759.c

index f6526aa22e8a152b58335ef6301d6f57da9be9b4..6f8ce6c6574babed56e1b7277cb04c76849be73a 100644 (file)
@@ -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");
index 7d217430616a3aea098c99ce0a3a551e0ee90808..b0c7dbc8a4283c88de229bc2332676a82412e9a5 100644 (file)
@@ -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) {