Skip to contentSkip to conversation

staging: comedi: fix coding style issues in comedi_fops.c

PATCH In review Raghavendra Ganiga 3 participants 3 messages Apr 30, 2014 – May 1, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: comedi: fix coding style issues in comedi_fops.c

This is a patch to fix coding style
warnings found by the checkpatch.pl tool

---
 drivers/staging/comedi/comedi_fops.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/staging/comedi/comedi_fops.c +4 -2
index acc8019..a62d639 100644
@@ -1435,13 +1435,15 @@ static int __comedi_get_user_cmd(struct comedi_device *dev,
 	s = &dev->subdevices[cmd->subdev];
 
 	if (s->type == COMEDI_SUBD_UNUSED) {
-		dev_dbg(dev->class_dev, "%d not valid subdevice\n", cmd->subdev);
+		dev_dbg(dev->class_dev, "%d not valid subdevice\n",
+			cmd->subdev);
 		return -EIO;
 	}
 
 	if (!s->do_cmd || !s->do_cmdtest || !s->async) {
 		dev_dbg(dev->class_dev,
-			"subdevice %d does not support commands\n", cmd->subdev);
+			"subdevice %d does not support commands\n",
+			cmd->subdev);
 		return -EIO;
 	}
 
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 3 lines · Raghavendra Ganiga

This is a patch to fix coding style
warnings found by the checkpatch.pl tool

Someone fixed this already. You should be working against linux-next for this kind of thing.

regards,
dan carpenter

Reviewed-by on v1 1/1
#2 lore raw
In reply to Raghavendra Ganiga
Quoted 19 lines · Raghavendra Ganiga

This is a patch to fix coding style
warnings found by the checkpatch.pl tool

---
 drivers/staging/comedi/comedi_fops.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/staging/comedi/comedi_fops.c +2 -1
index acc8019..a62d639 100644
@@ -1435,13 +1435,15 @@ static int __comedi_get_user_cmd(struct comedi_device *dev,
 	s = &dev->subdevices[cmd->subdev];
 
 	if (s->type == COMEDI_SUBD_UNUSED) {
-		dev_dbg(dev->class_dev, "%d not valid subdevice\n", cmd->subdev);
+		dev_dbg(dev->class_dev, "%d not valid subdevice\n",
+			cmd->subdev);

drivers/staging/comedi/comedi_fops.c static int __comedi_get_user_cmd(struct comedi_device *dev, · line 1448

Quoted 10 lines
drivers/staging/comedi/comedi_fops.c +2 -1
 		return -EIO;
 	}
 
 	if (!s->do_cmd || !s->do_cmdtest || !s->async) {
 		dev_dbg(dev->class_dev,
-			"subdevice %d does not support commands\n", cmd->subdev);
+			"subdevice %d does not support commands\n",
+			cmd->subdev);
 		return -EIO;
 	}

(I think this is "PATCH v2".)

Signature · 2 lines
-=( Ian Abbott @ MEV Ltd.    E-mail: <[email protected]>             )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587              )=-