From: Suman Kumar <suman@inforcecomputing.com>
To: hverkuil@xs4all.nl
Cc: g.liakhovetski@gmx.de, m.chehab@samsung.com,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
suman@inforcecomputing.com, kernel-janitors@vger.kernel.org
Subject: [PATCH] staging: soc_camera.c: Fixed a Missing blank line coding style issue
Date: Mon, 11 Aug 2014 02:09:12 +0530 [thread overview]
Message-ID: <1407703152-1847-1-git-send-email-suman@inforcecomputing.com> (raw)
Fixes a coding style issue of 'Missing a blank line after
declarations' reported by checkpatch.pl
Signed-off-by: Suman Kumar <suman@inforcecomputing.com>
---
drivers/media/platform/soc_camera/soc_camera.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/media/platform/soc_camera/soc_camera.c b/drivers/media/platform/soc_camera/soc_camera.c
index 7fec8cd..968a64b 100644
--- a/drivers/media/platform/soc_camera/soc_camera.c
+++ b/drivers/media/platform/soc_camera/soc_camera.c
@@ -830,6 +830,7 @@ void soc_camera_lock(struct vb2_queue *vq)
{
struct soc_camera_device *icd = vb2_get_drv_priv(vq);
struct soc_camera_host *ici = to_soc_camera_host(icd->parent);
+
mutex_lock(&ici->host_lock);
}
EXPORT_SYMBOL(soc_camera_lock);
@@ -838,6 +839,7 @@ void soc_camera_unlock(struct vb2_queue *vq)
{
struct soc_camera_device *icd = vb2_get_drv_priv(vq);
struct soc_camera_host *ici = to_soc_camera_host(icd->parent);
+
mutex_unlock(&ici->host_lock);
}
EXPORT_SYMBOL(soc_camera_unlock);
@@ -1703,6 +1705,7 @@ static int soc_camera_remove(struct soc_camera_device *icd)
} else {
struct device *dev = to_soc_camera_control(icd);
struct device_driver *drv = dev ? dev->driver : NULL;
+
if (drv) {
sdesc->host_desc.del_device(icd);
module_put(drv->owner);
@@ -1728,18 +1731,21 @@ static int default_cropcap(struct soc_camera_device *icd,
struct v4l2_cropcap *a)
{
struct v4l2_subdev *sd = soc_camera_to_subdev(icd);
+
return v4l2_subdev_call(sd, video, cropcap, a);
}
static int default_g_crop(struct soc_camera_device *icd, struct v4l2_crop *a)
{
struct v4l2_subdev *sd = soc_camera_to_subdev(icd);
+
return v4l2_subdev_call(sd, video, g_crop, a);
}
static int default_s_crop(struct soc_camera_device *icd, const struct v4l2_crop *a)
{
struct v4l2_subdev *sd = soc_camera_to_subdev(icd);
+
return v4l2_subdev_call(sd, video, s_crop, a);
}
@@ -1747,6 +1753,7 @@ static int default_g_parm(struct soc_camera_device *icd,
struct v4l2_streamparm *parm)
{
struct v4l2_subdev *sd = soc_camera_to_subdev(icd);
+
return v4l2_subdev_call(sd, video, g_parm, parm);
}
@@ -1754,6 +1761,7 @@ static int default_s_parm(struct soc_camera_device *icd,
struct v4l2_streamparm *parm)
{
struct v4l2_subdev *sd = soc_camera_to_subdev(icd);
+
return v4l2_subdev_call(sd, video, s_parm, parm);
}
--
1.8.2
reply other threads:[~2014-08-10 20:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1407703152-1847-1-git-send-email-suman@inforcecomputing.com \
--to=suman@inforcecomputing.com \
--cc=g.liakhovetski@gmx.de \
--cc=hverkuil@xs4all.nl \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=m.chehab@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox