Skip to contentSkip to conversation

Staging: comedi: driver : fix max 80 character coding style issue in s626.c

PATCH In review jitendra kumar khasdev 2 participants 2 messages Dec 29, 2014 – Dec 30, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 Staging: comedi: driver : fix max 80 character coding style issue in s626.c

This is a patch to the s626.c file that fixes up a maximum 80 character limit warning found by the checkpatch.pl tool

---
 drivers/staging/comedi/drivers/s626.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/comedi/drivers/s626.c +2 -1
index fc497dd..77f715b 100644
@@ -2534,7 +2534,8 @@ static int s626_initialize(struct comedi_device *dev)
 	for (i = 0; i < 2; i++) {
 		writel(S626_I2C_CLKSEL, dev->mmio + S626_P_I2CSTAT);
 		s626_mc_enable(dev, S626_MC2_UPLD_IIC, S626_P_MC2);
-		ret = comedi_timeout(dev, NULL, NULL, s626_i2c_handshake_eoc, 0);
+		ret = comedi_timeout(dev, NULL, NULL, s626_i2c_handshake_eoc,
+		0);
 		if (ret)
 			return ret;
 	}
Signature · 1 line
1.9.1
#1 lore raw
Quoted 13 lines · jitendra kumar khasdev

This is a patch to the s626.c file that fixes up a maximum 80 character limit warning found by the checkpatch.pl tool

---
  drivers/staging/comedi/drivers/s626.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/comedi/drivers/s626.c +0 -0
index fc497dd..77f715b 100644

drivers/staging/comedi/drivers/s626.c static int s626_initialize(struct comedi_device *dev) · line 2538

Quoted 6 lines
drivers/staging/comedi/drivers/s626.c +2 -1
@@ -2534,7 +2534,8 @@ static int s626_initialize(struct comedi_device *dev)
  	for (i = 0; i < 2; i++) {
  		writel(S626_I2C_CLKSEL, dev->mmio + S626_P_I2CSTAT);
  		s626_mc_enable(dev, S626_MC2_UPLD_IIC, S626_P_MC2);
-		ret = comedi_timeout(dev, NULL, NULL, s626_i2c_handshake_eoc, 0);
+		ret = comedi_timeout(dev, NULL, NULL, s626_i2c_handshake_eoc,
+		0);

Technically it meets the requirements, but our comedi house style is to indent the continuation of the statement just past the opening bracket/parenthesis like so:

		ret = comedi_timeout(dev, NULL, NULL, s626_i2c_handshake_eoc,
				     0);
Signature · 2 lines
-=( Ian Abbott @ MEV Ltd.    E-mail: <[email protected]> )=-
-=(                          Web: http://www.mev.co.uk/  )=-