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/saa7110.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/saa7110.c')
-rw-r--r-- | drivers/media/video/saa7110.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/media/video/saa7110.c b/drivers/media/video/saa7110.c index 8bb1fc17d195..5c24c993ac16 100644 --- a/drivers/media/video/saa7110.c +++ b/drivers/media/video/saa7110.c | |||
@@ -299,17 +299,18 @@ static int saa7110_s_std(struct v4l2_subdev *sd, v4l2_std_id std) | |||
299 | return 0; | 299 | return 0; |
300 | } | 300 | } |
301 | 301 | ||
302 | static int saa7110_s_routing(struct v4l2_subdev *sd, const struct v4l2_routing *route) | 302 | static int saa7110_s_routing(struct v4l2_subdev *sd, |
303 | u32 input, u32 output, u32 config) | ||
303 | { | 304 | { |
304 | struct saa7110 *decoder = to_saa7110(sd); | 305 | struct saa7110 *decoder = to_saa7110(sd); |
305 | 306 | ||
306 | if (route->input < 0 || route->input >= SAA7110_MAX_INPUT) { | 307 | if (input < 0 || input >= SAA7110_MAX_INPUT) { |
307 | v4l2_dbg(1, debug, sd, "input=%d not available\n", route->input); | 308 | v4l2_dbg(1, debug, sd, "input=%d not available\n", input); |
308 | return -EINVAL; | 309 | return -EINVAL; |
309 | } | 310 | } |
310 | if (decoder->input != route->input) { | 311 | if (decoder->input != input) { |
311 | saa7110_selmux(sd, route->input); | 312 | saa7110_selmux(sd, input); |
312 | v4l2_dbg(1, debug, sd, "switched to input=%d\n", route->input); | 313 | v4l2_dbg(1, debug, sd, "switched to input=%d\n", input); |
313 | } | 314 | } |
314 | return 0; | 315 | return 0; |
315 | } | 316 | } |