staging/iio/meter: fix the coding style problem
Subsystems (4)
PATCH 1/1 staging/iio/meter: fix the coding style problem
Signed-off-by joseph daniel <[email protected]>
---
Please consider this patch, previous one is wrong because my tabspace in vim was 4, instead 8. sorry..
drivers/staging/iio/meter/ade7854-i2c.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/staging/iio/meter/ade7854-i2c.c +4 -1
@@ -195,7 +195,10 @@ static int ade7854_i2c_read_reg_32(struct device *dev,if (ret) goto out; - *val = (st->rx[0 ] <<24 ) | (st->rx[1 ] <<16 ) | (st->rx[2 ] <<8 ) | st->rx[3 ]; + *val = (st->rx[0 ] <<24 ) | + (st->rx[1 ] <<16 ) | + (st->rx[2 ] <<8 ) | + st->rx[3 ]; out:mutex_unlock (&st->buf_lock);return ret;
Signature · 1 line
1.7.9.5
Quoted 13 lines · joseph daniel
Signed-off-by joseph daniel <[email protected]>---
Please consider this patch, previous one is wrong because my tabspace in vim was 4, instead 8. sorry..drivers/staging/iio/meter/ade7854-i2c.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)drivers/staging/iio/meter/ade7854-i2c.c +0
-0
drivers/staging/iio/meter/ade7854-i2c.c static int ade7854_i2c_read_reg_32(struct device *dev, · line 201
Quoted 8 lines
drivers/staging/iio/meter/ade7854-i2c.c +4
-1@@ -195,7 +195,10 @@ static int ade7854_i2c_read_reg_32(struct device *dev,if (ret) goto out; - *val = (st->rx[0 ] <<24 ) | (st->rx[1 ] <<16 ) | (st->rx[2 ] <<8 ) | st->rx[3 ]; + *val = (st->rx[0 ] <<24 ) | + (st->rx[1 ] <<16 ) | + (st->rx[2 ] <<8 ) | + st->rx[3 ];
Nack. In my opinion this doesn't make the code more readable. 80 chars per line should be though of as a softlimit.
But this looks like something that could use be32_to_cpu though.
Quoted 3 lines
drivers/staging/iio/meter/ade7854-i2c.c +0
-0out:mutex_unlock (&st->buf_lock);return ret;