Commit c1e6e241 authored by Leonid V. Fedorenchik's avatar Leonid V. Fedorenchik Committed by Greg Kroah-Hartman

Staging: cx25821: Fix function signatures

Fix long function signatures (over 80 characters) and indent them
properly.
Signed-off-by: default avatarLeonid V. Fedorenchik <leonidsbox@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 2748f26b
...@@ -110,7 +110,8 @@ struct cx25821_fmt *cx25821_format_by_fourcc(unsigned int fourcc) ...@@ -110,7 +110,8 @@ struct cx25821_fmt *cx25821_format_by_fourcc(unsigned int fourcc)
return NULL; 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 cx25821_buffer *buf;
struct list_head *item; struct list_head *item;
...@@ -220,7 +221,8 @@ static int cx25821_ctrl_query(struct v4l2_queryctrl *qctrl) ...@@ -220,7 +221,8 @@ static int cx25821_ctrl_query(struct v4l2_queryctrl *qctrl)
*/ */
/* resource management */ /* 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__); dprintk(1, "%s()\n", __func__);
if (fh->resources & bit) if (fh->resources & bit)
...@@ -252,7 +254,8 @@ int cx25821_res_locked(struct cx25821_fh *fh, unsigned int 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; 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); BUG_ON((fh->resources & bits) != bits);
dprintk(1, "%s()\n", __func__); dprintk(1, "%s()\n", __func__);
...@@ -684,7 +687,8 @@ int cx25821_buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb, ...@@ -684,7 +687,8 @@ int cx25821_buffer_prepare(struct videobuf_queue *q, struct videobuf_buffer *vb,
return rc; 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 = struct cx25821_buffer *buf =
container_of(vb, struct cx25821_buffer, vb); container_of(vb, struct cx25821_buffer, vb);
...@@ -1102,7 +1106,8 @@ static int vidioc_s_ctrl(struct file *file, void *priv, ...@@ -1102,7 +1106,8 @@ static int vidioc_s_ctrl(struct file *file, void *priv,
} }
/* VIDEO IOCTLS */ /* VIDEO IOCTLS */
int cx25821_vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f) int cx25821_vidioc_g_fmt_vid_cap(struct file *file, void *priv,
struct v4l2_format *f)
{ {
struct cx25821_fh *fh = priv; struct cx25821_fh *fh = priv;
...@@ -1116,7 +1121,8 @@ int cx25821_vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_form ...@@ -1116,7 +1121,8 @@ int cx25821_vidioc_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_form
return 0; 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; struct cx25821_fmt *fmt;
enum v4l2_field field; enum v4l2_field field;
...@@ -1162,7 +1168,8 @@ int cx25821_vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_fo ...@@ -1162,7 +1168,8 @@ int cx25821_vidioc_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_fo
return 0; 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; 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, ...@@ -1189,13 +1196,15 @@ int cx25821_vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
return 0; 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; struct cx25821_fh *fh = priv;
return videobuf_reqbufs(get_queue(fh), p); 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; struct cx25821_fh *fh = priv;
return videobuf_querybuf(get_queue(fh), p); 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) ...@@ -1217,7 +1226,8 @@ int cx25821_vidioc_g_priority(struct file *file, void *f, enum v4l2_priority *p)
return 0; 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_fh *fh = f;
struct cx25821_dev *dev = ((struct cx25821_fh *)f)->dev; 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) ...@@ -1280,7 +1290,8 @@ int cx25821_enum_input(struct cx25821_dev *dev, struct v4l2_input *i)
return 0; 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; struct cx25821_dev *dev = ((struct cx25821_fh *)priv)->dev;
dprintk(1, "%s()\n", __func__); dprintk(1, "%s()\n", __func__);
...@@ -1323,7 +1334,8 @@ int cx25821_vidioc_s_input(struct file *file, void *priv, unsigned int i) ...@@ -1323,7 +1334,8 @@ int cx25821_vidioc_s_input(struct file *file, void *priv, unsigned int i)
} }
#ifdef TUNER_FLAG #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_fh *fh = priv;
struct cx25821_dev *dev = fh->dev; struct cx25821_dev *dev = fh->dev;
...@@ -1350,7 +1362,8 @@ int cx25821_set_freq(struct cx25821_dev *dev, struct v4l2_frequency *f) ...@@ -1350,7 +1362,8 @@ int cx25821_set_freq(struct cx25821_dev *dev, struct v4l2_frequency *f)
return 0; 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_fh *fh = priv;
struct cx25821_dev *dev; struct cx25821_dev *dev;
...@@ -1522,7 +1535,8 @@ static const struct v4l2_queryctrl *ctrl_by_id(unsigned int id) ...@@ -1522,7 +1535,8 @@ static const struct v4l2_queryctrl *ctrl_by_id(unsigned int id)
return NULL; 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_dev *dev = ((struct cx25821_fh *)priv)->dev;
struct cx25821_fh *fh = priv; struct cx25821_fh *fh = priv;
...@@ -1612,7 +1626,8 @@ static void cx25821_init_controls(struct cx25821_dev *dev, int chan_num) ...@@ -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; struct cx25821_dev *dev = ((struct cx25821_fh *)priv)->dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment