Skip to contentSkip to conversation

drivers:staging:media:omap24xx:v4l2-int-device.h: Added a '*' before ')'--(parenthesis closing)

PATCH In review Anjana Sasindran 3 participants 4 messages Nov 30, 2014 – Dec 1, 2014 1 message not in the archive

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

PATCH 1/1 drivers:staging:media:omap24xx:v4l2-int-device.h: Added a '*' before ')'--(parenthesis closing)

This patch fix a checkpatch.pl error:

ERROR: space prohibited before ')' parenthesis closing

---
 drivers/staging/media/omap24xx/v4l2-int-device.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/omap24xx/v4l2-int-device.h +1 -1
index 0286c95..9490595 100644
@@ -292,7 +292,7 @@ V4L2_INT_WRAPPER_1(s_video_routing, struct v4l2_routing, *);
 
 V4L2_INT_WRAPPER_0(dev_init);
 V4L2_INT_WRAPPER_0(dev_exit);
-V4L2_INT_WRAPPER_1(s_power, enum v4l2_power, );
+V4L2_INT_WRAPPER_1(s_power, enum v4l2_power, *);
 V4L2_INT_WRAPPER_1(g_priv, void, *);
 V4L2_INT_WRAPPER_1(g_ifparm, struct v4l2_ifparm, *);
 V4L2_INT_WRAPPER_1(g_needs_reset, void, *);
Signature · 1 line
1.9.1
#1 lore raw
Quoted 5 lines · Anjana Sasindran

This patch fix a checkpatch.pl error:

ERROR: space prohibited before ')' parenthesis closing

Thanks for the patch, but this driver is removed in kernel 3.19. So there is no point in patching it.

Regards,

Hans

Quoted 18 lines
---
 drivers/staging/media/omap24xx/v4l2-int-device.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/omap24xx/v4l2-int-device.h +1 -1
index 0286c95..9490595 100644
@@ -292,7 +292,7 @@ V4L2_INT_WRAPPER_1(s_video_routing, struct v4l2_routing, *);
 
 V4L2_INT_WRAPPER_0(dev_init);
 V4L2_INT_WRAPPER_0(dev_exit);
-V4L2_INT_WRAPPER_1(s_power, enum v4l2_power, );
+V4L2_INT_WRAPPER_1(s_power, enum v4l2_power, *);
 V4L2_INT_WRAPPER_1(g_priv, void, *);
 V4L2_INT_WRAPPER_1(g_ifparm, struct v4l2_ifparm, *);
 V4L2_INT_WRAPPER_1(g_needs_reset, void, *);
#2 lore raw
In reply to Anjana Sasindran
Quoted 14 lines · Anjana Sasindran

This patch fix a checkpatch.pl error:

ERROR: space prohibited before ')' parenthesis closing

---
 drivers/staging/media/omap24xx/v4l2-int-device.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/omap24xx/v4l2-int-device.h +0 -0
index 0286c95..9490595 100644

drivers/staging/media/omap24xx/v4l2-int-device.h V4L2_INT_WRAPPER_1(s_video_routing, struct v4l2_routing, *); · line 295

Quoted 5 lines
drivers/staging/media/omap24xx/v4l2-int-device.h +1 -1
@@ -292,7 +292,7 @@ V4L2_INT_WRAPPER_1(s_video_routing, struct v4l2_routing, *);
 
 V4L2_INT_WRAPPER_0(dev_init);
 V4L2_INT_WRAPPER_0(dev_exit);
-V4L2_INT_WRAPPER_1(s_power, enum v4l2_power, );
+V4L2_INT_WRAPPER_1(s_power, enum v4l2_power, *);

Wait, what? The changelog for this is not clear. This looks like either a bug fix or a bug introducer.

This driver has been deleted in linux-next anyway so I guess it doesn't matter. Please work against linux-next.

regards,
dan carpenter

A message that is not in the archive (sent off-list or not yet received): CABU2W3oMGH9v0+mjw+s+nRpbOj7pxdVvdMWhnmNgEwKPJ2VSmg@mail.gmail.com

#4 lore raw
Quoted 1 line · anjana s

Should I do anything on this further?

No. The driver will disappear in 3.19, so there is no point to this patch.

BTW, always check the Kconfig to see if a staging driver is marked deprecated. If so, then patches are pointless.

Regards,

Hans

Quoted 44 lines

Looking forward to hear from you.

On Mon, Dec 1, 2014 at 2:20 PM, Dan Carpenter <[email protected] <mailto:[email protected]>> wrote:

    On Sun, Nov 30, 2014 at 04:28:02PM +0530, Anjana Sasindran wrote:
    > This patch fix a checkpatch.pl <http://checkpatch.pl> error:
    >
    > ERROR: space prohibited before ')' parenthesis closing
    >
    > Signed-off-by: Anjana Sasindran <[email protected] <mailto:[email protected]>>
    > ---
    >  drivers/staging/media/omap24xx/v4l2-int-device.h | 2 +-
    >  1 file changed, 1 insertion(+), 1 deletion(-)
    >
    > diff --git a/drivers/staging/media/omap24xx/v4l2-int-device.h b/drivers/staging/media/omap24xx/v4l2-int-device.h
    > index 0286c95..9490595 100644
    > --- a/drivers/staging/media/omap24xx/v4l2-int-device.h
    > +++ b/drivers/staging/media/omap24xx/v4l2-int-device.h
    > @@ -292,7 +292,7 @@ V4L2_INT_WRAPPER_1(s_video_routing, struct v4l2_routing, *);
    >
    >  V4L2_INT_WRAPPER_0(dev_init);
    >  V4L2_INT_WRAPPER_0(dev_exit);
    > -V4L2_INT_WRAPPER_1(s_power, enum v4l2_power, );
    > +V4L2_INT_WRAPPER_1(s_power, enum v4l2_power, *);

    Wait, what?  The changelog for this is not clear.  This looks like
    either a bug fix or a bug introducer.

    This driver has been deleted in linux-next anyway so I guess it doesn't
    matter.  Please work against linux-next.

    regards,
    dan carpenter
Signature · 3 lines
Anjana S
Amrita School of Engineering
[email protected] <mailto:[email protected]>