mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 11:06:41 -05:00
media: v4l2: Rename second ioctl handlers argument to 'void *priv'
The second argument to the ioctl handlers is not a file handle any more. The standard practice is to name it 'void *priv' in drivers. Many drivers still name it 'void *fh', and a few use more exotic names. Replace those more exotic names with 'void *priv' in all media drivers. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Jai Luthra <jai.luthra@linux.dev> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
committed by
Hans Verkuil
parent
9d05191c4e
commit
5396f5ae0e
@@ -1252,7 +1252,7 @@ static int extron_s_output(struct file *file, void *priv, unsigned int o)
|
||||
return o ? -EINVAL : 0;
|
||||
}
|
||||
|
||||
static int extron_g_edid(struct file *file, void *_fh,
|
||||
static int extron_g_edid(struct file *file, void *priv,
|
||||
struct v4l2_edid *edid)
|
||||
{
|
||||
struct extron_port *port = video_drvdata(file);
|
||||
@@ -1280,7 +1280,7 @@ static int extron_g_edid(struct file *file, void *_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int extron_s_edid(struct file *file, void *_fh, struct v4l2_edid *edid)
|
||||
static int extron_s_edid(struct file *file, void *priv, struct v4l2_edid *edid)
|
||||
{
|
||||
struct extron_port *port = video_drvdata(file);
|
||||
|
||||
|
||||
@@ -1620,7 +1620,7 @@ static int bttv_g_std(struct file *file, void *priv, v4l2_std_id *id)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int bttv_querystd(struct file *file, void *f, v4l2_std_id *id)
|
||||
static int bttv_querystd(struct file *file, void *priv, v4l2_std_id *id)
|
||||
{
|
||||
struct bttv *btv = video_drvdata(file);
|
||||
|
||||
@@ -1750,7 +1750,7 @@ static int bttv_s_frequency(struct file *file, void *priv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int bttv_log_status(struct file *file, void *f)
|
||||
static int bttv_log_status(struct file *file, void *priv)
|
||||
{
|
||||
struct video_device *vdev = video_devdata(file);
|
||||
struct bttv *btv = video_drvdata(file);
|
||||
@@ -1761,7 +1761,7 @@ static int bttv_log_status(struct file *file, void *f)
|
||||
}
|
||||
|
||||
#ifdef CONFIG_VIDEO_ADV_DEBUG
|
||||
static int bttv_g_register(struct file *file, void *f,
|
||||
static int bttv_g_register(struct file *file, void *priv,
|
||||
struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct bttv *btv = video_drvdata(file);
|
||||
@@ -1774,7 +1774,7 @@ static int bttv_g_register(struct file *file, void *f,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int bttv_s_register(struct file *file, void *f,
|
||||
static int bttv_s_register(struct file *file, void *priv,
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct bttv *btv = video_drvdata(file);
|
||||
@@ -2159,7 +2159,7 @@ static int bttv_enum_fmt_vid_cap(struct file *file, void *priv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int bttv_g_parm(struct file *file, void *f,
|
||||
static int bttv_g_parm(struct file *file, void *priv,
|
||||
struct v4l2_streamparm *parm)
|
||||
{
|
||||
struct bttv *btv = video_drvdata(file);
|
||||
@@ -2208,7 +2208,7 @@ static int bttv_g_pixelaspect(struct file *file, void *priv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int bttv_g_selection(struct file *file, void *f, struct v4l2_selection *sel)
|
||||
static int bttv_g_selection(struct file *file, void *priv, struct v4l2_selection *sel)
|
||||
{
|
||||
struct bttv *btv = video_drvdata(file);
|
||||
|
||||
@@ -2232,7 +2232,7 @@ static int bttv_g_selection(struct file *file, void *f, struct v4l2_selection *s
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int bttv_s_selection(struct file *file, void *f, struct v4l2_selection *sel)
|
||||
static int bttv_s_selection(struct file *file, void *priv, struct v4l2_selection *sel)
|
||||
{
|
||||
struct bttv *btv = video_drvdata(file);
|
||||
const struct v4l2_rect *b;
|
||||
|
||||
@@ -241,7 +241,7 @@ static int try_fmt(struct v4l2_vbi_format *f, const struct bttv_tvnorm *tvnorm,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int bttv_try_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt)
|
||||
int bttv_try_fmt_vbi_cap(struct file *file, void *priv, struct v4l2_format *frt)
|
||||
{
|
||||
struct bttv *btv = video_drvdata(file);
|
||||
const struct bttv_tvnorm *tvnorm;
|
||||
@@ -258,7 +258,7 @@ int bttv_try_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt)
|
||||
}
|
||||
|
||||
|
||||
int bttv_s_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt)
|
||||
int bttv_s_fmt_vbi_cap(struct file *file, void *priv, struct v4l2_format *frt)
|
||||
{
|
||||
struct bttv *btv = video_drvdata(file);
|
||||
const struct bttv_tvnorm *tvnorm;
|
||||
@@ -301,7 +301,7 @@ int bttv_s_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt)
|
||||
}
|
||||
|
||||
|
||||
int bttv_g_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt)
|
||||
int bttv_g_fmt_vbi_cap(struct file *file, void *priv, struct v4l2_format *frt)
|
||||
{
|
||||
const struct bttv_tvnorm *tvnorm;
|
||||
struct bttv *btv = video_drvdata(file);
|
||||
|
||||
@@ -447,7 +447,7 @@ static int cobalt_cobaltc(struct cobalt *cobalt, unsigned int cmd, void *arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_g_register(struct file *file, void *priv_fh,
|
||||
static int cobalt_g_register(struct file *file, void *priv,
|
||||
struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -456,7 +456,7 @@ static int cobalt_g_register(struct file *file, void *priv_fh,
|
||||
return cobalt_cobaltc(cobalt, VIDIOC_DBG_G_REGISTER, reg);
|
||||
}
|
||||
|
||||
static int cobalt_s_register(struct file *file, void *priv_fh,
|
||||
static int cobalt_s_register(struct file *file, void *priv,
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -467,7 +467,7 @@ static int cobalt_s_register(struct file *file, void *priv_fh,
|
||||
}
|
||||
#endif
|
||||
|
||||
static int cobalt_querycap(struct file *file, void *priv_fh,
|
||||
static int cobalt_querycap(struct file *file, void *priv,
|
||||
struct v4l2_capability *vcap)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -562,7 +562,7 @@ static void cobalt_video_input_status_show(struct cobalt_stream *s)
|
||||
cobalt_info("rx%d: Packer: %x\n", rx, ioread32(&packer->control));
|
||||
}
|
||||
|
||||
static int cobalt_log_status(struct file *file, void *priv_fh)
|
||||
static int cobalt_log_status(struct file *file, void *priv)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
struct cobalt *cobalt = s->cobalt;
|
||||
@@ -596,7 +596,7 @@ static int cobalt_log_status(struct file *file, void *priv_fh)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_enum_dv_timings(struct file *file, void *priv_fh,
|
||||
static int cobalt_enum_dv_timings(struct file *file, void *priv,
|
||||
struct v4l2_enum_dv_timings *timings)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -613,7 +613,7 @@ static int cobalt_enum_dv_timings(struct file *file, void *priv_fh,
|
||||
pad, enum_dv_timings, timings);
|
||||
}
|
||||
|
||||
static int cobalt_s_dv_timings(struct file *file, void *priv_fh,
|
||||
static int cobalt_s_dv_timings(struct file *file, void *priv,
|
||||
struct v4l2_dv_timings *timings)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -641,7 +641,7 @@ static int cobalt_s_dv_timings(struct file *file, void *priv_fh,
|
||||
return err;
|
||||
}
|
||||
|
||||
static int cobalt_g_dv_timings(struct file *file, void *priv_fh,
|
||||
static int cobalt_g_dv_timings(struct file *file, void *priv,
|
||||
struct v4l2_dv_timings *timings)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -654,7 +654,7 @@ static int cobalt_g_dv_timings(struct file *file, void *priv_fh,
|
||||
pad, g_dv_timings, 0, timings);
|
||||
}
|
||||
|
||||
static int cobalt_query_dv_timings(struct file *file, void *priv_fh,
|
||||
static int cobalt_query_dv_timings(struct file *file, void *priv,
|
||||
struct v4l2_dv_timings *timings)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -667,7 +667,7 @@ static int cobalt_query_dv_timings(struct file *file, void *priv_fh,
|
||||
pad, query_dv_timings, 0, timings);
|
||||
}
|
||||
|
||||
static int cobalt_dv_timings_cap(struct file *file, void *priv_fh,
|
||||
static int cobalt_dv_timings_cap(struct file *file, void *priv,
|
||||
struct v4l2_dv_timings_cap *cap)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -677,7 +677,7 @@ static int cobalt_dv_timings_cap(struct file *file, void *priv_fh,
|
||||
pad, dv_timings_cap, cap);
|
||||
}
|
||||
|
||||
static int cobalt_enum_fmt_vid_cap(struct file *file, void *priv_fh,
|
||||
static int cobalt_enum_fmt_vid_cap(struct file *file, void *priv,
|
||||
struct v4l2_fmtdesc *f)
|
||||
{
|
||||
switch (f->index) {
|
||||
@@ -697,7 +697,7 @@ static int cobalt_enum_fmt_vid_cap(struct file *file, void *priv_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_g_fmt_vid_cap(struct file *file, void *priv_fh,
|
||||
static int cobalt_g_fmt_vid_cap(struct file *file, void *priv,
|
||||
struct v4l2_format *f)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -726,7 +726,7 @@ static int cobalt_g_fmt_vid_cap(struct file *file, void *priv_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_try_fmt_vid_cap(struct file *file, void *priv_fh,
|
||||
static int cobalt_try_fmt_vid_cap(struct file *file, void *priv,
|
||||
struct v4l2_format *f)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -787,7 +787,7 @@ static int cobalt_try_fmt_vid_cap(struct file *file, void *priv_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_s_fmt_vid_cap(struct file *file, void *priv_fh,
|
||||
static int cobalt_s_fmt_vid_cap(struct file *file, void *priv,
|
||||
struct v4l2_format *f)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -796,7 +796,7 @@ static int cobalt_s_fmt_vid_cap(struct file *file, void *priv_fh,
|
||||
if (vb2_is_busy(&s->q))
|
||||
return -EBUSY;
|
||||
|
||||
if (cobalt_try_fmt_vid_cap(file, priv_fh, f))
|
||||
if (cobalt_try_fmt_vid_cap(file, priv, f))
|
||||
return -EINVAL;
|
||||
|
||||
s->width = pix->width;
|
||||
@@ -821,7 +821,7 @@ static int cobalt_s_fmt_vid_cap(struct file *file, void *priv_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_try_fmt_vid_out(struct file *file, void *priv_fh,
|
||||
static int cobalt_try_fmt_vid_out(struct file *file, void *priv,
|
||||
struct v4l2_format *f)
|
||||
{
|
||||
struct v4l2_pix_format *pix = &f->fmt.pix;
|
||||
@@ -862,7 +862,7 @@ static int cobalt_try_fmt_vid_out(struct file *file, void *priv_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_g_fmt_vid_out(struct file *file, void *priv_fh,
|
||||
static int cobalt_g_fmt_vid_out(struct file *file, void *priv,
|
||||
struct v4l2_format *f)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -882,7 +882,7 @@ static int cobalt_g_fmt_vid_out(struct file *file, void *priv_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_enum_fmt_vid_out(struct file *file, void *priv_fh,
|
||||
static int cobalt_enum_fmt_vid_out(struct file *file, void *priv,
|
||||
struct v4l2_fmtdesc *f)
|
||||
{
|
||||
switch (f->index) {
|
||||
@@ -899,7 +899,7 @@ static int cobalt_enum_fmt_vid_out(struct file *file, void *priv_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_s_fmt_vid_out(struct file *file, void *priv_fh,
|
||||
static int cobalt_s_fmt_vid_out(struct file *file, void *priv,
|
||||
struct v4l2_format *f)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -909,7 +909,7 @@ static int cobalt_s_fmt_vid_out(struct file *file, void *priv_fh,
|
||||
};
|
||||
u32 code;
|
||||
|
||||
if (cobalt_try_fmt_vid_out(file, priv_fh, f))
|
||||
if (cobalt_try_fmt_vid_out(file, priv, f))
|
||||
return -EINVAL;
|
||||
|
||||
if (vb2_is_busy(&s->q) && (pix->pixelformat != s->pixfmt ||
|
||||
@@ -942,7 +942,7 @@ static int cobalt_s_fmt_vid_out(struct file *file, void *priv_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_enum_input(struct file *file, void *priv_fh,
|
||||
static int cobalt_enum_input(struct file *file, void *priv,
|
||||
struct v4l2_input *inp)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -963,7 +963,7 @@ static int cobalt_enum_input(struct file *file, void *priv_fh,
|
||||
video, g_input_status, &inp->status);
|
||||
}
|
||||
|
||||
static int cobalt_g_input(struct file *file, void *priv_fh, unsigned int *i)
|
||||
static int cobalt_g_input(struct file *file, void *priv, unsigned int *i)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
|
||||
@@ -971,7 +971,7 @@ static int cobalt_g_input(struct file *file, void *priv_fh, unsigned int *i)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_s_input(struct file *file, void *priv_fh, unsigned int i)
|
||||
static int cobalt_s_input(struct file *file, void *priv, unsigned int i)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
|
||||
@@ -990,7 +990,7 @@ static int cobalt_s_input(struct file *file, void *priv_fh, unsigned int i)
|
||||
ADV76XX_PAD_HDMI_PORT_A, 0, 0);
|
||||
}
|
||||
|
||||
static int cobalt_enum_output(struct file *file, void *priv_fh,
|
||||
static int cobalt_enum_output(struct file *file, void *priv,
|
||||
struct v4l2_output *out)
|
||||
{
|
||||
if (out->index)
|
||||
@@ -1001,18 +1001,18 @@ static int cobalt_enum_output(struct file *file, void *priv_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_g_output(struct file *file, void *priv_fh, unsigned int *i)
|
||||
static int cobalt_g_output(struct file *file, void *priv, unsigned int *i)
|
||||
{
|
||||
*i = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_s_output(struct file *file, void *priv_fh, unsigned int i)
|
||||
static int cobalt_s_output(struct file *file, void *priv, unsigned int i)
|
||||
{
|
||||
return i ? -EINVAL : 0;
|
||||
}
|
||||
|
||||
static int cobalt_g_edid(struct file *file, void *fh, struct v4l2_edid *edid)
|
||||
static int cobalt_g_edid(struct file *file, void *priv, struct v4l2_edid *edid)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
u32 pad = edid->pad;
|
||||
@@ -1026,7 +1026,7 @@ static int cobalt_g_edid(struct file *file, void *fh, struct v4l2_edid *edid)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int cobalt_s_edid(struct file *file, void *fh, struct v4l2_edid *edid)
|
||||
static int cobalt_s_edid(struct file *file, void *priv, struct v4l2_edid *edid)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
u32 pad = edid->pad;
|
||||
@@ -1050,7 +1050,7 @@ static int cobalt_subscribe_event(struct v4l2_fh *fh,
|
||||
return v4l2_ctrl_subscribe_event(fh, sub);
|
||||
}
|
||||
|
||||
static int cobalt_g_parm(struct file *file, void *fh, struct v4l2_streamparm *a)
|
||||
static int cobalt_g_parm(struct file *file, void *priv, struct v4l2_streamparm *a)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
struct v4l2_fract fps;
|
||||
@@ -1065,7 +1065,7 @@ static int cobalt_g_parm(struct file *file, void *fh, struct v4l2_streamparm *a)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cobalt_g_pixelaspect(struct file *file, void *fh,
|
||||
static int cobalt_g_pixelaspect(struct file *file, void *priv,
|
||||
int type, struct v4l2_fract *f)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
@@ -1084,7 +1084,7 @@ static int cobalt_g_pixelaspect(struct file *file, void *fh,
|
||||
return err;
|
||||
}
|
||||
|
||||
static int cobalt_g_selection(struct file *file, void *fh,
|
||||
static int cobalt_g_selection(struct file *file, void *priv,
|
||||
struct v4l2_selection *sel)
|
||||
{
|
||||
struct cobalt_stream *s = video_drvdata(file);
|
||||
|
||||
@@ -1302,7 +1302,7 @@ static int saa7134_g_pixelaspect(struct file *file, void *priv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int saa7134_g_selection(struct file *file, void *f, struct v4l2_selection *sel)
|
||||
static int saa7134_g_selection(struct file *file, void *priv, struct v4l2_selection *sel)
|
||||
{
|
||||
struct saa7134_dev *dev = video_drvdata(file);
|
||||
|
||||
@@ -1325,7 +1325,7 @@ static int saa7134_g_selection(struct file *file, void *f, struct v4l2_selection
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int saa7134_s_selection(struct file *file, void *f, struct v4l2_selection *sel)
|
||||
static int saa7134_s_selection(struct file *file, void *priv, struct v4l2_selection *sel)
|
||||
{
|
||||
struct saa7134_dev *dev = video_drvdata(file);
|
||||
struct v4l2_rect *b = &dev->crop_bounds;
|
||||
|
||||
@@ -446,7 +446,7 @@ vidioc_querycap(struct file *file, void *priv, struct v4l2_capability *cap)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_enum_fmt(struct file *file, void *prv, struct v4l2_fmtdesc *f)
|
||||
static int vidioc_enum_fmt(struct file *file, void *priv, struct v4l2_fmtdesc *f)
|
||||
{
|
||||
struct rga_fmt *fmt;
|
||||
|
||||
@@ -459,7 +459,7 @@ static int vidioc_enum_fmt(struct file *file, void *prv, struct v4l2_fmtdesc *f)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_g_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
static int vidioc_g_fmt(struct file *file, void *priv, struct v4l2_format *f)
|
||||
{
|
||||
struct v4l2_pix_format_mplane *pix_fmt = &f->fmt.pix_mp;
|
||||
struct rga_ctx *ctx = file_to_rga_ctx(file);
|
||||
@@ -481,7 +481,7 @@ static int vidioc_g_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_try_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
static int vidioc_try_fmt(struct file *file, void *priv, struct v4l2_format *f)
|
||||
{
|
||||
struct v4l2_pix_format_mplane *pix_fmt = &f->fmt.pix_mp;
|
||||
struct rga_fmt *fmt;
|
||||
@@ -501,7 +501,7 @@ static int vidioc_try_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_s_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
static int vidioc_s_fmt(struct file *file, void *priv, struct v4l2_format *f)
|
||||
{
|
||||
struct v4l2_pix_format_mplane *pix_fmt = &f->fmt.pix_mp;
|
||||
struct rga_ctx *ctx = file_to_rga_ctx(file);
|
||||
@@ -514,7 +514,7 @@ static int vidioc_s_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
/* Adjust all values accordingly to the hardware capabilities
|
||||
* and chosen format.
|
||||
*/
|
||||
ret = vidioc_try_fmt(file, prv, f);
|
||||
ret = vidioc_try_fmt(file, priv, f);
|
||||
if (ret)
|
||||
return ret;
|
||||
vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type);
|
||||
@@ -558,7 +558,7 @@ static int vidioc_s_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_g_selection(struct file *file, void *prv,
|
||||
static int vidioc_g_selection(struct file *file, void *priv,
|
||||
struct v4l2_selection *s)
|
||||
{
|
||||
struct rga_ctx *ctx = file_to_rga_ctx(file);
|
||||
@@ -606,7 +606,7 @@ static int vidioc_g_selection(struct file *file, void *prv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_s_selection(struct file *file, void *prv,
|
||||
static int vidioc_s_selection(struct file *file, void *priv,
|
||||
struct v4l2_selection *s)
|
||||
{
|
||||
struct rga_ctx *ctx = file_to_rga_ctx(file);
|
||||
|
||||
@@ -297,7 +297,7 @@ static int vidioc_querycap(struct file *file, void *priv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_enum_fmt(struct file *file, void *prv, struct v4l2_fmtdesc *f)
|
||||
static int vidioc_enum_fmt(struct file *file, void *priv, struct v4l2_fmtdesc *f)
|
||||
{
|
||||
if (f->index >= NUM_FORMATS)
|
||||
return -EINVAL;
|
||||
@@ -305,7 +305,7 @@ static int vidioc_enum_fmt(struct file *file, void *prv, struct v4l2_fmtdesc *f)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_g_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
static int vidioc_g_fmt(struct file *file, void *priv, struct v4l2_format *f)
|
||||
{
|
||||
struct g2d_ctx *ctx = file2ctx(file);
|
||||
struct vb2_queue *vq;
|
||||
@@ -327,7 +327,7 @@ static int vidioc_g_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_try_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
static int vidioc_try_fmt(struct file *file, void *priv, struct v4l2_format *f)
|
||||
{
|
||||
struct g2d_fmt *fmt;
|
||||
enum v4l2_field *field;
|
||||
@@ -357,7 +357,7 @@ static int vidioc_try_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_s_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
static int vidioc_s_fmt(struct file *file, void *priv, struct v4l2_format *f)
|
||||
{
|
||||
struct g2d_ctx *ctx = file2ctx(file);
|
||||
struct g2d_dev *dev = ctx->dev;
|
||||
@@ -368,7 +368,7 @@ static int vidioc_s_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
|
||||
/* Adjust all values accordingly to the hardware capabilities
|
||||
* and chosen format. */
|
||||
ret = vidioc_try_fmt(file, prv, f);
|
||||
ret = vidioc_try_fmt(file, priv, f);
|
||||
if (ret)
|
||||
return ret;
|
||||
vq = v4l2_m2m_get_vq(ctx->fh.m2m_ctx, f->type);
|
||||
@@ -397,7 +397,7 @@ static int vidioc_s_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_g_selection(struct file *file, void *prv,
|
||||
static int vidioc_g_selection(struct file *file, void *priv,
|
||||
struct v4l2_selection *s)
|
||||
{
|
||||
struct g2d_ctx *ctx = file2ctx(file);
|
||||
@@ -447,7 +447,7 @@ static int vidioc_g_selection(struct file *file, void *prv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_try_selection(struct file *file, void *prv,
|
||||
static int vidioc_try_selection(struct file *file, void *priv,
|
||||
const struct v4l2_selection *s)
|
||||
{
|
||||
struct g2d_ctx *ctx = file2ctx(file);
|
||||
@@ -475,14 +475,14 @@ static int vidioc_try_selection(struct file *file, void *prv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_s_selection(struct file *file, void *prv,
|
||||
static int vidioc_s_selection(struct file *file, void *priv,
|
||||
struct v4l2_selection *s)
|
||||
{
|
||||
struct g2d_ctx *ctx = file2ctx(file);
|
||||
struct g2d_frame *f;
|
||||
int ret;
|
||||
|
||||
ret = vidioc_try_selection(file, prv, s);
|
||||
ret = vidioc_try_selection(file, priv, s);
|
||||
if (ret)
|
||||
return ret;
|
||||
f = get_frame(ctx, s->type);
|
||||
|
||||
@@ -330,7 +330,7 @@ static int vidioc_enum_fmt(struct file *file, struct v4l2_fmtdesc *f,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_enum_fmt_vid_cap(struct file *file, void *pirv,
|
||||
static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
|
||||
struct v4l2_fmtdesc *f)
|
||||
{
|
||||
return vidioc_enum_fmt(file, f, false);
|
||||
|
||||
@@ -1375,7 +1375,7 @@ static int vidioc_enum_fmt(struct file *file, struct v4l2_fmtdesc *f,
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static int vidioc_enum_fmt_vid_cap(struct file *file, void *pirv,
|
||||
static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
|
||||
struct v4l2_fmtdesc *f)
|
||||
{
|
||||
return vidioc_enum_fmt(file, f, false);
|
||||
|
||||
@@ -343,7 +343,7 @@ static int vidioc_querycap(struct file *file, void *priv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_enum_fmt(struct file *file, void *prv, struct v4l2_fmtdesc *f)
|
||||
static int vidioc_enum_fmt(struct file *file, void *priv, struct v4l2_fmtdesc *f)
|
||||
{
|
||||
if (f->index >= NUM_FORMATS)
|
||||
return -EINVAL;
|
||||
@@ -352,7 +352,7 @@ static int vidioc_enum_fmt(struct file *file, void *prv, struct v4l2_fmtdesc *f)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_g_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
static int vidioc_g_fmt(struct file *file, void *priv, struct v4l2_format *f)
|
||||
{
|
||||
struct dma2d_ctx *ctx = file2ctx(file);
|
||||
struct vb2_queue *vq;
|
||||
@@ -377,7 +377,7 @@ static int vidioc_g_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_try_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
static int vidioc_try_fmt(struct file *file, void *priv, struct v4l2_format *f)
|
||||
{
|
||||
struct dma2d_ctx *ctx = file2ctx(file);
|
||||
struct dma2d_fmt *fmt;
|
||||
@@ -420,7 +420,7 @@ static int vidioc_try_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_s_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
static int vidioc_s_fmt(struct file *file, void *priv, struct v4l2_format *f)
|
||||
{
|
||||
struct dma2d_ctx *ctx = file2ctx(file);
|
||||
struct vb2_queue *vq;
|
||||
@@ -431,7 +431,7 @@ static int vidioc_s_fmt(struct file *file, void *prv, struct v4l2_format *f)
|
||||
/* Adjust all values accordingly to the hardware capabilities
|
||||
* and chosen format.
|
||||
*/
|
||||
ret = vidioc_try_fmt(file, prv, f);
|
||||
ret = vidioc_try_fmt(file, priv, f);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
||||
@@ -711,7 +711,7 @@ static void sun6i_csi_capture_format_prepare(struct v4l2_format *format)
|
||||
pix_format->xfer_func = V4L2_XFER_FUNC_DEFAULT;
|
||||
}
|
||||
|
||||
static int sun6i_csi_capture_querycap(struct file *file, void *private,
|
||||
static int sun6i_csi_capture_querycap(struct file *file, void *priv,
|
||||
struct v4l2_capability *capability)
|
||||
{
|
||||
struct sun6i_csi_device *csi_dev = video_drvdata(file);
|
||||
@@ -725,7 +725,7 @@ static int sun6i_csi_capture_querycap(struct file *file, void *private,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sun6i_csi_capture_enum_fmt(struct file *file, void *private,
|
||||
static int sun6i_csi_capture_enum_fmt(struct file *file, void *priv,
|
||||
struct v4l2_fmtdesc *fmtdesc)
|
||||
{
|
||||
u32 index = fmtdesc->index;
|
||||
@@ -738,7 +738,7 @@ static int sun6i_csi_capture_enum_fmt(struct file *file, void *private,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sun6i_csi_capture_g_fmt(struct file *file, void *private,
|
||||
static int sun6i_csi_capture_g_fmt(struct file *file, void *priv,
|
||||
struct v4l2_format *format)
|
||||
{
|
||||
struct sun6i_csi_device *csi_dev = video_drvdata(file);
|
||||
@@ -748,7 +748,7 @@ static int sun6i_csi_capture_g_fmt(struct file *file, void *private,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sun6i_csi_capture_s_fmt(struct file *file, void *private,
|
||||
static int sun6i_csi_capture_s_fmt(struct file *file, void *priv,
|
||||
struct v4l2_format *format)
|
||||
{
|
||||
struct sun6i_csi_device *csi_dev = video_drvdata(file);
|
||||
@@ -764,7 +764,7 @@ static int sun6i_csi_capture_s_fmt(struct file *file, void *private,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sun6i_csi_capture_try_fmt(struct file *file, void *private,
|
||||
static int sun6i_csi_capture_try_fmt(struct file *file, void *priv,
|
||||
struct v4l2_format *format)
|
||||
{
|
||||
sun6i_csi_capture_format_prepare(format);
|
||||
@@ -772,7 +772,7 @@ static int sun6i_csi_capture_try_fmt(struct file *file, void *private,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sun6i_csi_capture_enum_input(struct file *file, void *private,
|
||||
static int sun6i_csi_capture_enum_input(struct file *file, void *priv,
|
||||
struct v4l2_input *input)
|
||||
{
|
||||
if (input->index != 0)
|
||||
@@ -784,7 +784,7 @@ static int sun6i_csi_capture_enum_input(struct file *file, void *private,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sun6i_csi_capture_g_input(struct file *file, void *private,
|
||||
static int sun6i_csi_capture_g_input(struct file *file, void *priv,
|
||||
unsigned int *index)
|
||||
{
|
||||
*index = 0;
|
||||
@@ -792,7 +792,7 @@ static int sun6i_csi_capture_g_input(struct file *file, void *private,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sun6i_csi_capture_s_input(struct file *file, void *private,
|
||||
static int sun6i_csi_capture_s_input(struct file *file, void *priv,
|
||||
unsigned int index)
|
||||
{
|
||||
if (index != 0)
|
||||
|
||||
@@ -459,7 +459,7 @@ static bool port_no_link(struct snps_hdmirx_dev *hdmirx_dev)
|
||||
return !tx_5v_power_present(hdmirx_dev);
|
||||
}
|
||||
|
||||
static int hdmirx_query_dv_timings(struct file *file, void *_fh,
|
||||
static int hdmirx_query_dv_timings(struct file *file, void *priv,
|
||||
struct v4l2_dv_timings *timings)
|
||||
{
|
||||
struct hdmirx_stream *stream = video_drvdata(file);
|
||||
@@ -751,7 +751,7 @@ static int hdmirx_dv_timings_cap(struct file *file, void *fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int hdmirx_enum_dv_timings(struct file *file, void *_fh,
|
||||
static int hdmirx_enum_dv_timings(struct file *file, void *priv,
|
||||
struct v4l2_enum_dv_timings *timings)
|
||||
{
|
||||
return v4l2_enum_dv_timings_cap(timings, &hdmirx_timings_cap, NULL, NULL);
|
||||
@@ -1323,7 +1323,7 @@ static int hdmirx_g_fmt_vid_cap_mplane(struct file *file, void *fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int hdmirx_g_dv_timings(struct file *file, void *_fh,
|
||||
static int hdmirx_g_dv_timings(struct file *file, void *priv,
|
||||
struct v4l2_dv_timings *timings)
|
||||
{
|
||||
struct hdmirx_stream *stream = video_drvdata(file);
|
||||
@@ -1339,7 +1339,7 @@ static int hdmirx_g_dv_timings(struct file *file, void *_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int hdmirx_s_dv_timings(struct file *file, void *_fh,
|
||||
static int hdmirx_s_dv_timings(struct file *file, void *priv,
|
||||
struct v4l2_dv_timings *timings)
|
||||
{
|
||||
struct hdmirx_stream *stream = video_drvdata(file);
|
||||
|
||||
@@ -299,7 +299,7 @@ static int ti_csi2rx_enum_fmt_vid_cap(struct file *file, void *priv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ti_csi2rx_g_fmt_vid_cap(struct file *file, void *prov,
|
||||
static int ti_csi2rx_g_fmt_vid_cap(struct file *file, void *priv,
|
||||
struct v4l2_format *f)
|
||||
{
|
||||
struct ti_csi2rx_dev *csi = video_drvdata(file);
|
||||
|
||||
@@ -1236,7 +1236,7 @@ static int vidioc_g_fbuf(struct file *file, void *fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_enum_output(struct file *file, void *priv_fh,
|
||||
static int vidioc_enum_output(struct file *file, void *priv,
|
||||
struct v4l2_output *out)
|
||||
{
|
||||
if (out->index)
|
||||
@@ -1246,13 +1246,13 @@ static int vidioc_enum_output(struct file *file, void *priv_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_g_output(struct file *file, void *priv_fh, unsigned int *i)
|
||||
static int vidioc_g_output(struct file *file, void *priv, unsigned int *i)
|
||||
{
|
||||
*i = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_s_output(struct file *file, void *priv_fh, unsigned int i)
|
||||
static int vidioc_s_output(struct file *file, void *priv, unsigned int i)
|
||||
{
|
||||
return i ? -EINVAL : 0;
|
||||
}
|
||||
|
||||
@@ -75,35 +75,35 @@ static inline struct v4l2_device *get_v4l2_dev(struct file *file)
|
||||
return &((struct radio_si4713_device *)video_drvdata(file))->v4l2_dev;
|
||||
}
|
||||
|
||||
static int radio_si4713_g_modulator(struct file *file, void *p,
|
||||
static int radio_si4713_g_modulator(struct file *file, void *priv,
|
||||
struct v4l2_modulator *vm)
|
||||
{
|
||||
return v4l2_device_call_until_err(get_v4l2_dev(file), 0, tuner,
|
||||
g_modulator, vm);
|
||||
}
|
||||
|
||||
static int radio_si4713_s_modulator(struct file *file, void *p,
|
||||
static int radio_si4713_s_modulator(struct file *file, void *priv,
|
||||
const struct v4l2_modulator *vm)
|
||||
{
|
||||
return v4l2_device_call_until_err(get_v4l2_dev(file), 0, tuner,
|
||||
s_modulator, vm);
|
||||
}
|
||||
|
||||
static int radio_si4713_g_frequency(struct file *file, void *p,
|
||||
static int radio_si4713_g_frequency(struct file *file, void *priv,
|
||||
struct v4l2_frequency *vf)
|
||||
{
|
||||
return v4l2_device_call_until_err(get_v4l2_dev(file), 0, tuner,
|
||||
g_frequency, vf);
|
||||
}
|
||||
|
||||
static int radio_si4713_s_frequency(struct file *file, void *p,
|
||||
static int radio_si4713_s_frequency(struct file *file, void *priv,
|
||||
const struct v4l2_frequency *vf)
|
||||
{
|
||||
return v4l2_device_call_until_err(get_v4l2_dev(file), 0, tuner,
|
||||
s_frequency, vf);
|
||||
}
|
||||
|
||||
static long radio_si4713_default(struct file *file, void *p,
|
||||
static long radio_si4713_default(struct file *file, void *priv,
|
||||
bool valid_prio, unsigned int cmd, void *arg)
|
||||
{
|
||||
return v4l2_device_call_until_err(get_v4l2_dev(file), 0, core,
|
||||
|
||||
@@ -1499,7 +1499,7 @@ static int vidioc_g_selection(struct file *file, void *priv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_g_std(struct file *file, void *fh0, v4l2_std_id *norm)
|
||||
static int vidioc_g_std(struct file *file, void *priv, v4l2_std_id *norm)
|
||||
{
|
||||
struct cx231xx *dev = video_drvdata(file);
|
||||
|
||||
|
||||
@@ -1029,15 +1029,15 @@ static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_g_fmt_vid_cap(struct file *file, void *_priv,
|
||||
static int vidioc_g_fmt_vid_cap(struct file *file, void *priv,
|
||||
struct v4l2_format *fmt)
|
||||
{
|
||||
struct gspca_dev *gspca_dev = video_drvdata(file);
|
||||
u32 priv = fmt->fmt.pix.priv;
|
||||
u32 fmt_priv = fmt->fmt.pix.priv;
|
||||
|
||||
fmt->fmt.pix = gspca_dev->pixfmt;
|
||||
/* some drivers use priv internally, so keep the original value */
|
||||
fmt->fmt.pix.priv = priv;
|
||||
fmt->fmt.pix.priv = fmt_priv;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1075,24 +1075,24 @@ static int try_fmt_vid_cap(struct gspca_dev *gspca_dev,
|
||||
return mode; /* used when s_fmt */
|
||||
}
|
||||
|
||||
static int vidioc_try_fmt_vid_cap(struct file *file, void *_priv,
|
||||
static int vidioc_try_fmt_vid_cap(struct file *file, void *priv,
|
||||
struct v4l2_format *fmt)
|
||||
{
|
||||
struct gspca_dev *gspca_dev = video_drvdata(file);
|
||||
u32 priv = fmt->fmt.pix.priv;
|
||||
u32 fmt_priv = fmt->fmt.pix.priv;
|
||||
|
||||
if (try_fmt_vid_cap(gspca_dev, fmt) < 0)
|
||||
return -EINVAL;
|
||||
/* some drivers use priv internally, so keep the original value */
|
||||
fmt->fmt.pix.priv = priv;
|
||||
fmt->fmt.pix.priv = fmt_priv;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_s_fmt_vid_cap(struct file *file, void *_priv,
|
||||
static int vidioc_s_fmt_vid_cap(struct file *file, void *priv,
|
||||
struct v4l2_format *fmt)
|
||||
{
|
||||
struct gspca_dev *gspca_dev = video_drvdata(file);
|
||||
u32 priv = fmt->fmt.pix.priv;
|
||||
u32 fmt_priv = fmt->fmt.pix.priv;
|
||||
int mode;
|
||||
|
||||
if (vb2_is_busy(&gspca_dev->queue))
|
||||
@@ -1109,7 +1109,7 @@ static int vidioc_s_fmt_vid_cap(struct file *file, void *_priv,
|
||||
else
|
||||
gspca_dev->pixfmt = gspca_dev->cam.cam_mode[mode];
|
||||
/* some drivers use priv internally, so keep the original value */
|
||||
fmt->fmt.pix.priv = priv;
|
||||
fmt->fmt.pix.priv = fmt_priv;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -590,7 +590,7 @@ static int vidioc_querycap(struct file *file, void *priv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_s_std(struct file *file, void *_fh,
|
||||
static int vidioc_s_std(struct file *file, void *priv,
|
||||
v4l2_std_id std)
|
||||
{
|
||||
struct hdpvr_device *dev = video_drvdata(file);
|
||||
@@ -610,7 +610,7 @@ static int vidioc_s_std(struct file *file, void *_fh,
|
||||
return hdpvr_config_call(dev, CTRL_VIDEO_STD_TYPE, std_type);
|
||||
}
|
||||
|
||||
static int vidioc_g_std(struct file *file, void *_fh,
|
||||
static int vidioc_g_std(struct file *file, void *priv,
|
||||
v4l2_std_id *std)
|
||||
{
|
||||
struct hdpvr_device *dev = video_drvdata(file);
|
||||
@@ -623,7 +623,7 @@ static int vidioc_g_std(struct file *file, void *_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_querystd(struct file *file, void *_fh, v4l2_std_id *a)
|
||||
static int vidioc_querystd(struct file *file, void *priv, v4l2_std_id *a)
|
||||
{
|
||||
struct hdpvr_device *dev = video_drvdata(file);
|
||||
struct hdpvr_fh *fh = file_to_hdpvr_fh(file);
|
||||
@@ -642,7 +642,7 @@ static int vidioc_querystd(struct file *file, void *_fh, v4l2_std_id *a)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int vidioc_s_dv_timings(struct file *file, void *_fh,
|
||||
static int vidioc_s_dv_timings(struct file *file, void *priv,
|
||||
struct v4l2_dv_timings *timings)
|
||||
{
|
||||
struct hdpvr_device *dev = video_drvdata(file);
|
||||
@@ -665,7 +665,7 @@ static int vidioc_s_dv_timings(struct file *file, void *_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_g_dv_timings(struct file *file, void *_fh,
|
||||
static int vidioc_g_dv_timings(struct file *file, void *priv,
|
||||
struct v4l2_dv_timings *timings)
|
||||
{
|
||||
struct hdpvr_device *dev = video_drvdata(file);
|
||||
@@ -678,7 +678,7 @@ static int vidioc_g_dv_timings(struct file *file, void *_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_query_dv_timings(struct file *file, void *_fh,
|
||||
static int vidioc_query_dv_timings(struct file *file, void *priv,
|
||||
struct v4l2_dv_timings *timings)
|
||||
{
|
||||
struct hdpvr_device *dev = video_drvdata(file);
|
||||
@@ -720,7 +720,7 @@ static int vidioc_query_dv_timings(struct file *file, void *_fh,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int vidioc_enum_dv_timings(struct file *file, void *_fh,
|
||||
static int vidioc_enum_dv_timings(struct file *file, void *priv,
|
||||
struct v4l2_enum_dv_timings *timings)
|
||||
{
|
||||
struct hdpvr_device *dev = video_drvdata(file);
|
||||
@@ -736,7 +736,7 @@ static int vidioc_enum_dv_timings(struct file *file, void *_fh,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_dv_timings_cap(struct file *file, void *_fh,
|
||||
static int vidioc_dv_timings_cap(struct file *file, void *priv,
|
||||
struct v4l2_dv_timings_cap *cap)
|
||||
{
|
||||
struct hdpvr_device *dev = video_drvdata(file);
|
||||
@@ -763,7 +763,7 @@ static const char *iname[] = {
|
||||
[HDPVR_COMPOSITE] = "Composite",
|
||||
};
|
||||
|
||||
static int vidioc_enum_input(struct file *file, void *_fh, struct v4l2_input *i)
|
||||
static int vidioc_enum_input(struct file *file, void *priv, struct v4l2_input *i)
|
||||
{
|
||||
unsigned int n;
|
||||
|
||||
@@ -783,7 +783,7 @@ static int vidioc_enum_input(struct file *file, void *_fh, struct v4l2_input *i)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_s_input(struct file *file, void *_fh,
|
||||
static int vidioc_s_input(struct file *file, void *priv,
|
||||
unsigned int index)
|
||||
{
|
||||
struct hdpvr_device *dev = video_drvdata(file);
|
||||
@@ -817,7 +817,7 @@ static int vidioc_s_input(struct file *file, void *_fh,
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int vidioc_g_input(struct file *file, void *private_data,
|
||||
static int vidioc_g_input(struct file *file, void *priv,
|
||||
unsigned int *index)
|
||||
{
|
||||
struct hdpvr_device *dev = video_drvdata(file);
|
||||
@@ -849,7 +849,7 @@ static int vidioc_enumaudio(struct file *file, void *priv,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_s_audio(struct file *file, void *private_data,
|
||||
static int vidioc_s_audio(struct file *file, void *priv,
|
||||
const struct v4l2_audio *audio)
|
||||
{
|
||||
struct hdpvr_device *dev = video_drvdata(file);
|
||||
@@ -868,7 +868,7 @@ static int vidioc_s_audio(struct file *file, void *private_data,
|
||||
return retval;
|
||||
}
|
||||
|
||||
static int vidioc_g_audio(struct file *file, void *private_data,
|
||||
static int vidioc_g_audio(struct file *file, void *priv,
|
||||
struct v4l2_audio *audio)
|
||||
{
|
||||
struct hdpvr_device *dev = video_drvdata(file);
|
||||
@@ -985,7 +985,7 @@ static int hdpvr_s_ctrl(struct v4l2_ctrl *ctrl)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int vidioc_enum_fmt_vid_cap(struct file *file, void *private_data,
|
||||
static int vidioc_enum_fmt_vid_cap(struct file *file, void *priv,
|
||||
struct v4l2_fmtdesc *f)
|
||||
{
|
||||
if (f->index != 0)
|
||||
@@ -996,7 +996,7 @@ static int vidioc_enum_fmt_vid_cap(struct file *file, void *private_data,
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vidioc_g_fmt_vid_cap(struct file *file, void *_fh,
|
||||
static int vidioc_g_fmt_vid_cap(struct file *file, void *priv,
|
||||
struct v4l2_format *f)
|
||||
{
|
||||
struct hdpvr_device *dev = video_drvdata(file);
|
||||
|
||||
Reference in New Issue
Block a user