staging: soc_camera: soc_camera_platform.c: Fixed a Missing blank line coding style issue
Subsystems (2)
PATCH 1/1 staging: soc_camera: soc_camera_platform.c: Fixed a Missing blank line coding style issue
Fixes a coding style issue reported by checkpatch.pl
--- drivers/media/platform/soc_camera/soc_camera_platform.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/media/platform/soc_camera/soc_camera_platform.c +2 -0
@@ -27,12 +27,14 @@ struct soc_camera_platform_priv {static struct soc_camera_platform_priv *get_priv (struct platform_device *pdev) {struct v4l2_subdev *subdev =platform_get_drvdata (pdev); + return container_of(subdev, struct soc_camera_platform_priv, subdev); }static int soc_camera_platform_s_stream (struct v4l2_subdev *sd,int enable) {struct soc_camera_platform_info *p =v4l2_get_subdevdata (sd); +return p->set_capture (p, enable); }
Signature · 1 line
1.8.2
Hi Suman,
Quoted 1 line · Suman Kumar
Fixes a coding style issue reported by checkpatch.pl
Thanks for your patch. To my taste checkpatch.pl has unfortunately become too noisy with meaningless / unimportant warnings like this one. Is this in CodingStyle? If not, my intention is to drop this. However, Mauro may override by either taking this himself or asking me to apply this.
Thanks
Guennadi
Quoted 28 lines
Signed-off-by Suman Kumar <[email protected]>--- drivers/media/platform/soc_camera/soc_camera_platform.c | 2 ++ 1 file changed, 2 insertions(+)drivers/media/platform/soc_camera/soc_camera_platform.c +2
-0@@ -27,12 +27,14 @@ struct soc_camera_platform_priv {static struct soc_camera_platform_priv *get_priv (struct platform_device *pdev) {struct v4l2_subdev *subdev =platform_get_drvdata (pdev); + return container_of(subdev, struct soc_camera_platform_priv, subdev); }static int soc_camera_platform_s_stream (struct v4l2_subdev *sd,int enable) {struct soc_camera_platform_info *p =v4l2_get_subdevdata (sd); +return p->set_capture (p, enable); }Signature · 1 line
1.8.2
Quoted 9 lines · Guennadi Liakhovetski
Hi Suman,
Quoted 1 line · Suman Kumar
Fixes a coding style issue reported by checkpatch.pl
Thanks for your patch. To my taste checkpatch.pl has unfortunately become too noisy with meaningless / unimportant warnings like this one. Is this in CodingStyle? If not, my intention is to drop this.
I don't see it being mentioned explicitly in the CodingStyle, but the coding style follows K&R, and they put an empty line between local variables and the start of the code. And I like it that way as well, it makes it easier to review.
If you don't want to be bothered by such patches, just delegate them to me in patchwork, I don't mind.
Regards,
Hans
Quoted 39 lines
However, Mauro may
override by either taking this himself or asking me to apply this.Thanks
GuennadiQuoted 28 lines
Signed-off-by Suman Kumar <[email protected]>--- drivers/media/platform/soc_camera/soc_camera_platform.c | 2 ++ 1 file changed, 2 insertions(+)drivers/media/platform/soc_camera/soc_camera_platform.c +2
-0@@ -27,12 +27,14 @@ struct soc_camera_platform_priv {static struct soc_camera_platform_priv *get_priv (struct platform_device *pdev) {struct v4l2_subdev *subdev =platform_get_drvdata (pdev); + return container_of(subdev, struct soc_camera_platform_priv, subdev); }static int soc_camera_platform_s_stream (struct v4l2_subdev *sd,int enable) {struct soc_camera_platform_info *p =v4l2_get_subdevdata (sd); +return p->set_capture (p, enable); }Signature · 1 line
1.8.2--
To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html