aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7115.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-03-14 08:57:30 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:58:45 -0400
commit32cd527f59f8aa8549067a2c5f989b736f7da79a (patch)
tree2552bd0efffc5bd21011e1f139c1b7a5c9a27390 /drivers/media/video/saa7115.c
parentb26d6e21788864039bfb24840a668f2cb0848930 (diff)
V4L/DVB: v4l: move vbi-specific video ops to a new vbi ops struct
Only a relatively small number of video receivers and transmitters actually support VBI. So start moving the vbi specific ops to an ops struct of their own. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7115.c')
-rw-r--r--drivers/media/video/saa7115.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/video/saa7115.c b/drivers/media/video/saa7115.c
index 72eaa662b66f..cfee323d9c2c 100644
--- a/drivers/media/video/saa7115.c
+++ b/drivers/media/video/saa7115.c
@@ -1550,18 +1550,22 @@ static const struct v4l2_subdev_video_ops saa711x_video_ops = {
1550 .s_crystal_freq = saa711x_s_crystal_freq, 1550 .s_crystal_freq = saa711x_s_crystal_freq,
1551 .g_fmt = saa711x_g_fmt, 1551 .g_fmt = saa711x_g_fmt,
1552 .s_fmt = saa711x_s_fmt, 1552 .s_fmt = saa711x_s_fmt,
1553 .g_vbi_data = saa711x_g_vbi_data,
1554 .decode_vbi_line = saa711x_decode_vbi_line,
1555 .s_stream = saa711x_s_stream, 1553 .s_stream = saa711x_s_stream,
1556 .querystd = saa711x_querystd, 1554 .querystd = saa711x_querystd,
1557 .g_input_status = saa711x_g_input_status, 1555 .g_input_status = saa711x_g_input_status,
1558}; 1556};
1559 1557
1558static const struct v4l2_subdev_vbi_ops saa711x_vbi_ops = {
1559 .g_vbi_data = saa711x_g_vbi_data,
1560 .decode_vbi_line = saa711x_decode_vbi_line,
1561};
1562
1560static const struct v4l2_subdev_ops saa711x_ops = { 1563static const struct v4l2_subdev_ops saa711x_ops = {
1561 .core = &saa711x_core_ops, 1564 .core = &saa711x_core_ops,
1562 .tuner = &saa711x_tuner_ops, 1565 .tuner = &saa711x_tuner_ops,
1563 .audio = &saa711x_audio_ops, 1566 .audio = &saa711x_audio_ops,
1564 .video = &saa711x_video_ops, 1567 .video = &saa711x_video_ops,
1568 .vbi = &saa711x_vbi_ops,
1565}; 1569};
1566 1570
1567/* ----------------------------------------------------------------------- */ 1571/* ----------------------------------------------------------------------- */