diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-04-02 10:26:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-04-06 20:44:27 -0400 |
commit | 5325b4272a53b43f55b82cc369c310c2fcacdca1 (patch) | |
tree | f2a1491de3d05901152e0e271c0cb5ce381884c2 /drivers/media/video/cx23885/cx23885-video.c | |
parent | c0ff29150d37615ac703802ab3edc775fd402491 (diff) |
V4L/DVB (11380): v4l2-subdev: change s_routing prototype
It is no longer needed to use a struct pointer as argument, since v4l2_subdev
doesn't require that ioctl-like approach anymore. Instead just pass the input,
output and config (new!) arguments directly.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx23885/cx23885-video.c')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-video.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/media/video/cx23885/cx23885-video.c b/drivers/media/video/cx23885/cx23885-video.c index ce7b3f8cdc65..68068c6d0987 100644 --- a/drivers/media/video/cx23885/cx23885-video.c +++ b/drivers/media/video/cx23885/cx23885-video.c | |||
@@ -393,9 +393,6 @@ static void res_free(struct cx23885_dev *dev, struct cx23885_fh *fh, | |||
393 | 393 | ||
394 | static int cx23885_video_mux(struct cx23885_dev *dev, unsigned int input) | 394 | static int cx23885_video_mux(struct cx23885_dev *dev, unsigned int input) |
395 | { | 395 | { |
396 | struct v4l2_routing route; | ||
397 | memset(&route, 0, sizeof(route)); | ||
398 | |||
399 | dprintk(1, "%s() video_mux: %d [vmux=%d, gpio=0x%x,0x%x,0x%x,0x%x]\n", | 396 | dprintk(1, "%s() video_mux: %d [vmux=%d, gpio=0x%x,0x%x,0x%x,0x%x]\n", |
400 | __func__, | 397 | __func__, |
401 | input, INPUT(input)->vmux, | 398 | input, INPUT(input)->vmux, |
@@ -403,10 +400,9 @@ static int cx23885_video_mux(struct cx23885_dev *dev, unsigned int input) | |||
403 | INPUT(input)->gpio2, INPUT(input)->gpio3); | 400 | INPUT(input)->gpio2, INPUT(input)->gpio3); |
404 | dev->input = input; | 401 | dev->input = input; |
405 | 402 | ||
406 | route.input = INPUT(input)->vmux; | ||
407 | |||
408 | /* Tell the internal A/V decoder */ | 403 | /* Tell the internal A/V decoder */ |
409 | v4l2_subdev_call(dev->sd_cx25840, video, s_routing, &route); | 404 | v4l2_subdev_call(dev->sd_cx25840, video, s_routing, |
405 | INPUT(input)->vmux, 0, 0); | ||
410 | 406 | ||
411 | return 0; | 407 | return 0; |
412 | } | 408 | } |