Skip to contentSkip to conversation

staging : iio: meter: ade7759: fix space before , coding style issue

PATCH In review Mohammad Jamal 2 participants 2 messages Dec 21, 2014 – Dec 26, 2014

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

PATCH 1/1 staging : iio: meter: ade7759: fix space before , coding style issue

This patch solves the space before , coding style issue found by checkpatch in ade7759.c

---
 drivers/staging/iio/meter/ade7759.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/meter/ade7759.c +1 -1
index 7d21743..b0c7dbc 100644
@@ -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) {
Signature · 1 line
1.7.9.5
maintainer
#1 lore raw
Quoted 4 lines · Mohammad Jamal

This patch solves the space before , coding style issue found by checkpatch in ade7759.c

Fixed by Zachery Warren back in November. I'm a bit behind with sending stuff upstream so won't have hit anything other than the togreg branch of iio.git just yet.

Patch was:

[PATCH] drivers:staging:iio: fix checkpatch complaint about space before comma Thanks,

Jonathan

Quoted 18 lines
---
 drivers/staging/iio/meter/ade7759.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/meter/ade7759.c +1 -1
index 7d21743..b0c7dbc 100644
@@ -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) {