From: "Leonid V. Fedorenchik" <leonidsbox@gmail.com>
To: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>,
Hans Verkuil <hverkuil@xs4all.nl>, Joe Perches <joe@perches.com>,
devel@linuxdriverproject.org, linux-kernel@vger.kernel.org,
"Leonid V. Fedorenchik" <leonidsbox@gmail.com>
Subject: [PATCH 02/44] Staging: cx25821: Fix function signatures
Date: Fri, 16 Sep 2011 14:14:35 +0800 [thread overview]
Message-ID: <1316153717-7272-3-git-send-email-leonidsbox@gmail.com> (raw)
In-Reply-To: <1316153717-7272-1-git-send-email-leonidsbox@gmail.com>
Fix long function signatures (over 80 characters) and indent them
properly.
Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
---
drivers/staging/cx25821/cx25821-video.c | 49 ++++++++++++++++++++-----------
1 files changed, 32 insertions(+), 17 deletions(-)
diff --git a/drivers/staging/cx25821/cx25821-video.c b/drivers/staging/cx25821/cx25821-video.c
index 8bdd1e8..4a365bb 100644
--- a/drivers/staging/cx25821/cx25821-video.c
+++ b/drivers/staging/cx25821/cx25821-video.c
@@ -110,7 +110,8 @@ struct cx25821_fmt *cx25821_format_by_fourcc(unsigned int fourcc)
return NULL;
}
-void cx25821_dump_video_queue(struct cx25821_dev *dev, struct cx25821_dmaqueue *q)
+void cx25821_dump_video_queue(struct cx25821_dev *dev,
+ struct cx25821_dmaqueue *q)
{
struct cx25821_buffer *buf;
struct list_head *item;
@@ -220,7 +221,8 @@ static int cx25821_ctrl_query(struct v4l2_queryctrl *qctrl)
*/
/* resource management */
-int cx25821_res_get(struct cx25821_dev *dev, struct cx25821_fh *fh, unsigned int bit)
+int cx25821_res_get(struct cx25821_dev *dev, struct cx25821_fh *fh,
+ unsigned int bit)
{
dprintk(1, "%s()\n", __func__);
if (fh->resources & bit)
@@ -252,7 +254,8 @@ int cx25821_res_locked(struct cx25821_fh *fh, unsigned int bit)
return fh->dev->channels[fh->channel_id].resources & bit;
}
-void cx25821_res_free(struct cx25821_dev *dev, struct cx25821_fh *fh, unsigned int bits)
+void cx25821_res_free(struct cx25821_dev *dev, struct cx25821_fh *fh,
+ unsigned int bits)
{
BUG_ON((fh->resources & bits) != bits);
dprintk(1, "%s()\n", __func__);
@@ -684,7 +687,8 @@ fail:
return rc;
}
-void cx25821_buffer_release(struct videobuf_queue *q, struct videobuf_buffer *vb)
+void cx25821_buffer_release(struct videobuf_queue *q,
+ struct videobuf_buffer *vb)
{
struct cx25821_buffer *buf =
container_of(vb, struct cx25821_buffer, vb);
@@ -992,7 +996,7 @@ static int vidioc_streamoff(struct file *file, void *priv, enum v4l2_buf_type i)
}
static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
- struct v4l2_format *f)
+ struct v4l2_format *f)
{
struct cx25821_fh *fh = priv;
struct cx25821_dev *dev = ((struct cx25821_fh *)priv)->dev;
@@ -1101,8 +1105,9 @@ static int vidioc_s_ctrl(struct file *file, void *priv,
return cx25821_set_control(dev, ctl, fh->channel_id);
}
-/* VIDEO IOCTLS */
-int cx25821_vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f)
+/* VIDEO IOCTLS */
+int cx25821_vidioc_g_fmt_vid_cap(struct file *file, void *priv,
+ struct v4l2_format *f)
{
struct cx25821_fh *fh = priv;
@@ -1116,7 +1121,8 @@ int cx25821_vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_form
return 0;
}
-int cx25821_vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f)
+int cx25821_vidioc_try_fmt_vid_cap(struct file *file, void *priv,
+ struct v4l2_format *f)
{
struct cx25821_fmt *fmt;
enum v4l2_field field;
@@ -1162,7 +1168,8 @@ int cx25821_vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_fo
return 0;
}
-int cx25821_vidioc_querycap(struct file *file, void *priv, struct v4l2_capability *cap)
+int cx25821_vidioc_querycap(struct file *file, void *priv,
+ struct v4l2_capability *cap)
{
struct cx25821_dev *dev = ((struct cx25821_fh *)priv)->dev;
@@ -1189,13 +1196,15 @@ int cx25821_vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
return 0;
}
-int cx25821_vidioc_reqbufs(struct file *file, void *priv, struct v4l2_requestbuffers *p)
+int cx25821_vidioc_reqbufs(struct file *file, void *priv,
+ struct v4l2_requestbuffers *p)
{
struct cx25821_fh *fh = priv;
return videobuf_reqbufs(get_queue(fh), p);
}
-int cx25821_vidioc_querybuf(struct file *file, void *priv, struct v4l2_buffer *p)
+int cx25821_vidioc_querybuf(struct file *file, void *priv,
+ struct v4l2_buffer *p)
{
struct cx25821_fh *fh = priv;
return videobuf_querybuf(get_queue(fh), p);
@@ -1217,7 +1226,8 @@ int cx25821_vidioc_g_priority(struct file *file, void *f, enum v4l2_priority *p)
return 0;
}
-int cx25821_vidioc_s_priority(struct file *file, void *f, enum v4l2_priority prio)
+int cx25821_vidioc_s_priority(struct file *file, void *f,
+ enum v4l2_priority prio)
{
struct cx25821_fh *fh = f;
struct cx25821_dev *dev = ((struct cx25821_fh *)f)->dev;
@@ -1280,7 +1290,8 @@ int cx25821_enum_input(struct cx25821_dev *dev, struct v4l2_input *i)
return 0;
}
-int cx25821_vidioc_enum_input(struct file *file, void *priv, struct v4l2_input *i)
+int cx25821_vidioc_enum_input(struct file *file, void *priv,
+ struct v4l2_input *i)
{
struct cx25821_dev *dev = ((struct cx25821_fh *)priv)->dev;
dprintk(1, "%s()\n", __func__);
@@ -1323,7 +1334,8 @@ int cx25821_vidioc_s_input(struct file *file, void *priv, unsigned int i)
}
#ifdef TUNER_FLAG
-int cx25821_vidioc_g_frequency(struct file *file, void *priv, struct v4l2_frequency *f)
+int cx25821_vidioc_g_frequency(struct file *file, void *priv,
+ struct v4l2_frequency *f)
{
struct cx25821_fh *fh = priv;
struct cx25821_dev *dev = fh->dev;
@@ -1350,7 +1362,8 @@ int cx25821_set_freq(struct cx25821_dev *dev, struct v4l2_frequency *f)
return 0;
}
-int cx25821_vidioc_s_frequency(struct file *file, void *priv, struct v4l2_frequency *f)
+int cx25821_vidioc_s_frequency(struct file *file, void *priv,
+ struct v4l2_frequency *f)
{
struct cx25821_fh *fh = priv;
struct cx25821_dev *dev;
@@ -1522,7 +1535,8 @@ static const struct v4l2_queryctrl *ctrl_by_id(unsigned int id)
return NULL;
}
-int cx25821_vidioc_g_ctrl(struct file *file, void *priv, struct v4l2_control *ctl)
+int cx25821_vidioc_g_ctrl(struct file *file, void *priv,
+ struct v4l2_control *ctl)
{
struct cx25821_dev *dev = ((struct cx25821_fh *)priv)->dev;
struct cx25821_fh *fh = priv;
@@ -1612,7 +1626,8 @@ static void cx25821_init_controls(struct cx25821_dev *dev, int chan_num)
}
}
-int cx25821_vidioc_cropcap(struct file *file, void *priv, struct v4l2_cropcap *cropcap)
+int cx25821_vidioc_cropcap(struct file *file, void *priv,
+ struct v4l2_cropcap *cropcap)
{
struct cx25821_dev *dev = ((struct cx25821_fh *)priv)->dev;
--
1.7.0.4
next prev parent reply other threads:[~2011-09-16 6:16 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-16 6:14 [PATCH 00/44] Staging: cx25821: Fix style issues Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 01/44] Staging: cx25821: Fix labels' placement in cx25821-video.c Leonid V. Fedorenchik
2011-09-16 6:14 ` Leonid V. Fedorenchik [this message]
2011-09-16 6:14 ` [PATCH 03/44] Staging: cx25821: Fix obscure line endings Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 04/44] Staging: cx25821: Fix indent in comment Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 05/44] Staging: cx25821: Change indent with spaces to tabs 1 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 06/44] Staging: cx25821: Change indent with spaces to tabs 2 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 07/44] Staging: cx25821: Change indent with spaces to tabs 3 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 08/44] Staging: cx25821: Change indent with spaces to tabs 4 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 09/44] Staging: cx25821: Change indent with spaces to tabs 5 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 10/44] Staging: cx25821: Change indent with spaces to tabs 6 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 11/44] Staging: cx25821: Change indent with spaces to tabs 7 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 12/44] Staging: cx25821: Change indent with spaces to tabs 8 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 13/44] Staging: cx25821: Change indent with spaces to tabs 9 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 14/44] Staging: cx25821: Change indent with spaces to tabs 10 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 15/44] Staging: cx25821: Change indent with spaces to tabs 11 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 16/44] Staging: cx25821: Change indent with spaces to tabs 12 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 17/44] Staging: cx25821: Change indent with spaces to tabs 13 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 18/44] Staging: cx25821: Change indent with spaces to tabs 14 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 19/44] Staging: cx25821: Change indent with spaces to tabs 15 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 20/44] Staging: cx25821: Change indent with spaces to tabs 16 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 21/44] Staging: cx25821: Change indent with spaces to tabs 17 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 22/44] Staging: cx25821: Change indent with spaces to tabs 18 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 23/44] Staging: cx25821: Change indent with spaces to tabs 19 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 24/44] Staging: cx25821: Change indent with spaces to tabs 20 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 25/44] Staging: cx25821: Change indent with spaces to tabs 21 Leonid V. Fedorenchik
2011-09-16 6:14 ` [PATCH 26/44] Staging: cx25821: Change indent with spaces to tabs 22 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 27/44] Staging: cx25821: Change indent with spaces to tabs 23 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 28/44] Staging: cx25821: Change indent with spaces to tabs 24 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 29/44] Staging: cx25821: Change indent with spaces to tabs 25 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 30/44] Staging: cx25821: Change indent with spaces to tabs 26 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 31/44] Staging: cx25821: Change indent with spaces to tabs 27 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 32/44] Staging: cx25821: Change indent with spaces to tabs 28 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 33/44] Staging: cx25821: Change indent with spaces to tabs 29 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 34/44] Staging: cx25821: Change indent with spaces to tabs 30 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 35/44] Staging: cx25821: Change indent with spaces to tabs 31 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 36/44] Staging: cx25821: Change indent with spaces to tabs 32 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 37/44] Staging: cx25821: Change indent with spaces to tabs 33 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 38/44] Staging: cx25821: Change indent with spaces to tabs 34 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 39/44] Staging: cx25821: Change indent with spaces to tabs 35 Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 40/44] Staging: cx25821: Fix braces around statements in cx25821-video.c Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 41/44] Staging: cx25821: Replace :? by if-else " Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 42/44] Staging: cx25821: cx25821-video.h: Line up constant Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 43/44] Staging: cx25821: cx25821-video.h: Fix indent Leonid V. Fedorenchik
2011-09-16 6:15 ` [PATCH 44/44] Staging: cx25821: cx25821-video.h: Fix long lines Leonid V. Fedorenchik
2011-09-16 18:47 ` [PATCH 00/44] Staging: cx25821: Fix style issues Greg KH
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=1316153717-7272-3-git-send-email-leonidsbox@gmail.com \
--to=leonidsbox@gmail.com \
--cc=devel@linuxdriverproject.org \
--cc=gregkh@suse.de \
--cc=hverkuil@xs4all.nl \
--cc=joe@perches.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@redhat.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