Staging: media: omap4iss: fixed coding style issues
Subsystems (2)
PATCH 1/1 Staging: media: omap4iss: fixed coding style issues
Fixed coding style issues
--- drivers/staging/media/omap4iss/iss_video.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
drivers/staging/media/omap4iss/iss_video.c +7 -4
@@ -297,8 +297,10 @@ iss_video_check_format(struct iss_video *video, struct iss_video_fh *vfh)*/ static int iss_video_queue_setup (struct vb2_queue *vq, -unsigned int *count,unsigned int *num_planes, -unsigned int sizes[],struct device *alloc_devs[]) +unsigned int *count, +unsigned int *num_planes, +unsigned int sizes[], +struct device *alloc_devs[]) {struct iss_video_fh *vfh =vb2_get_drv_priv (vq);struct iss_video *video = vfh->video;
@@ -678,9 +680,10 @@ iss_video_get_selection(struct file *file, void *fh, struct v4l2_selection *sel)if (subdev ==NULL )return -EINVAL ; -/* Try the get selection operation first and fallback to get format if not -* implemented. +/* Try the get selection operation first and fallback to +* get format if not implemented. */ + sdsel.pad = pad; ret =v4l2_subdev_call (subdev, pad, get_selection,NULL , &sdsel);if (!ret)
Signature · 1 line
2.10.0
Hi Hector,
Thank you for the patch.
Quoted 1 line · On Sunday 16 Oct 2016 17:18:56 Hector Roussille wrote:
Fixed coding style issues
What coding style issues ?
Quoted 14 lines
Signed-off-by Hector Roussille <[email protected]>--- drivers/staging/media/omap4iss/iss_video.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)(quoted diff) +0
-0
b/drivers/staging/media/omap4iss/iss_video.cindex c16927a..8f2d374 100644drivers/staging/media/omap4iss/iss_video.c +0
-0@@ -297,8 +297,10 @@ iss_video_check_format(struct iss_video *video, struct
iss_video_fh*vfh) */static int iss_video_queue_setup(struct
vb2_queue*vq,
drivers/staging/media/omap4iss/iss_video.c
Quoted 1 line
drivers/staging/media/omap4iss/iss_video.c +0
-1- unsigned int *count, unsigned int
*num_planes,
This line doesn't exceed the 80 columns limit, no need to split it.
drivers/staging/media/omap4iss/iss_video.c
Quoted 1 line
drivers/staging/media/omap4iss/iss_video.c +0
-1- unsigned int sizes[], struct device
*alloc_devs[])
drivers/staging/media/omap4iss/iss_video.c iss_video_get_selection(struct file *file, void *fh, · line 681
Quoted 12 lines
drivers/staging/media/omap4iss/iss_video.c +4
-1+unsigned int *count, + unsigned int *num_planes, + unsigned int sizes[], + struct device *alloc_devs[]) { struct iss_video_fh *vfh = vb2_get_drv_priv(vq);struct iss_video *video = vfh->video;@@ -678,9 +680,10 @@ iss_video_get_selection(struct file *file, void *fh, struct v4l2_selection *sel) if (subdev == NULL)return -EINVAL ; -/* Try the get selection operation first and fallback to get format if
not
drivers/staging/media/omap4iss/iss_video.c iss_video_get_selection(struct file *file, void *fh, struct v4l2_selection *sel) · line 683
Quoted 2 lines
drivers/staging/media/omap4iss/iss_video.c +1
-1-* implemented. +/* Try the get selection operation first and fallback to
while do you split the line here and not right before the 80 columns limit ?
drivers/staging/media/omap4iss/iss_video.c iss_video_get_selection(struct file *file, void *fh, struct v4l2_selection *sel) · line 685
Quoted 2 lines
drivers/staging/media/omap4iss/iss_video.c +1
-0+* get format if not implemented. */
This isn't the preferred comment style for the kernel, see
http://lkml.iu.edu/hypermail/linux/kernel/1607.1/00627.html. The problem doesn't predate your patch, but while at it you might want to fix it through the driver.
drivers/staging/media/omap4iss/iss_video.c iss_video_get_selection(struct file *file, void *fh, struct v4l2_selection *sel) · line 686
Quoted 1 line
drivers/staging/media/omap4iss/iss_video.c +1
-0+
How does adding a blank line here fix a coding style issue ?
Quoted 3 lines
drivers/staging/media/omap4iss/iss_video.c +0
-0sdsel.pad = pad; ret =v4l2_subdev_call (subdev, pad, get_selection,NULL , &sdsel);if (!ret)
Signature · 3 lines
Regards, Laurent Pinchart
Greg KH
maintainerQuoted 1 line · Hector Roussille
Fixed coding style issues
You need to be a lot more specific please.
thanks,
greg k-h