Skip to contentSkip to conversation

Staging: media: fix missing blank line coding style issue in atomisp_tpg.c

PATCH In review Manny Vindiola 3 participants 3 messages May 18, 2017

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

PATCH 1/1 Staging: media: fix missing blank line coding style issue in atomisp_tpg.c

This is a patch to the atomisp_tpg.c file that fixes up a missing blank line warning found by the checkpatch.pl tool

---
 drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c +1 -0
index 996d1bd..48b9604 100644
@@ -56,6 +56,7 @@ static int tpg_set_fmt(struct v4l2_subdev *sd,
 		       struct v4l2_subdev_format *format)
 {
 	struct v4l2_mbus_framefmt *fmt = &format->format;
+
 	if (format->pad)
 		return -EINVAL;
 	/* only raw8 grbg is supported by TPG */
Signature · 1 line
2.7.4
#1 lore raw
Quoted 14 lines · Manny Vindiola

This is a patch to the atomisp_tpg.c file that fixes up a missing blank line warning found by the checkpatch.pl tool

---
 drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c | 1 +

 1 file changed, 1 insertion(+)
drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c +0 -0
index 996d1bd..48b9604 100644

drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c static int tpg_set_fmt(struct v4l2_subdev *sd, · line 62

Quoted 7 lines
drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c +1 -0
@@ -56,6 +56,7 @@ static int tpg_set_fmt(struct v4l2_subdev *sd,
  		       struct v4l2_subdev_format *format)
  {
  	struct v4l2_mbus_framefmt *fmt = &format->format;
+
  	if (format->pad)
  		return -EINVAL;
  	/* only raw8 grbg is supported by TPG */

The TODO fille for this driver specifically says not to send formatting patches at this point.

There is no point making trivial spacing changes in code that needs lots of real work. It's like polishing your car when the doors have fallen off.

Alan

maintainer
#2 lore raw
Quoted 26 lines · Alan Cox
Quoted 14 lines · Manny Vindiola

This is a patch to the atomisp_tpg.c file that fixes up a missing blank line warning found by the checkpatch.pl tool

---
 drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c | 1 +

 1 file changed, 1 insertion(+)
drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c +0 -0
index 996d1bd..48b9604 100644

drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c static int tpg_set_fmt(struct v4l2_subdev *sd, · line 62

Quoted 7 lines
drivers/staging/media/atomisp/pci/atomisp2/atomisp_tpg.c +1 -0
@@ -56,6 +56,7 @@ static int tpg_set_fmt(struct v4l2_subdev *sd,
  		       struct v4l2_subdev_format *format)
  {
  	struct v4l2_mbus_framefmt *fmt = &format->format;
+
  	if (format->pad)
  		return -EINVAL;
  	/* only raw8 grbg is supported by TPG */

The TODO fille for this driver specifically says not to send formatting patches at this point.

Quoted 3 lines

There is no point making trivial spacing changes in code that needs lots of real work. It's like polishing your car when the doors have fallen off.

Unfortunatly, given that the code is in staging, that's not going to happen, people are going to send cleanup patches, and that's ok. They should be easy to merge around, it's the price for being in the tree.

thanks,

greg k-h