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/cx25840/cx25840-core.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/cx25840/cx25840-core.c')
-rw-r--r-- | drivers/media/video/cx25840/cx25840-core.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/media/video/cx25840/cx25840-core.c b/drivers/media/video/cx25840/cx25840-core.c index 62090279f46..0be51b65f09 100644 --- a/drivers/media/video/cx25840/cx25840-core.c +++ b/drivers/media/video/cx25840/cx25840-core.c | |||
@@ -1322,22 +1322,24 @@ static int cx25840_s_radio(struct v4l2_subdev *sd) | |||
1322 | return 0; | 1322 | return 0; |
1323 | } | 1323 | } |
1324 | 1324 | ||
1325 | static int cx25840_s_video_routing(struct v4l2_subdev *sd, const struct v4l2_routing *route) | 1325 | static int cx25840_s_video_routing(struct v4l2_subdev *sd, |
1326 | u32 input, u32 output, u32 config) | ||
1326 | { | 1327 | { |
1327 | struct cx25840_state *state = to_state(sd); | 1328 | struct cx25840_state *state = to_state(sd); |
1328 | struct i2c_client *client = v4l2_get_subdevdata(sd); | 1329 | struct i2c_client *client = v4l2_get_subdevdata(sd); |
1329 | 1330 | ||
1330 | return set_input(client, route->input, state->aud_input); | 1331 | return set_input(client, input, state->aud_input); |
1331 | } | 1332 | } |
1332 | 1333 | ||
1333 | static int cx25840_s_audio_routing(struct v4l2_subdev *sd, const struct v4l2_routing *route) | 1334 | static int cx25840_s_audio_routing(struct v4l2_subdev *sd, |
1335 | u32 input, u32 output, u32 config) | ||
1334 | { | 1336 | { |
1335 | struct cx25840_state *state = to_state(sd); | 1337 | struct cx25840_state *state = to_state(sd); |
1336 | struct i2c_client *client = v4l2_get_subdevdata(sd); | 1338 | struct i2c_client *client = v4l2_get_subdevdata(sd); |
1337 | 1339 | ||
1338 | if (state->is_cx25836) | 1340 | if (state->is_cx25836) |
1339 | return -EINVAL; | 1341 | return -EINVAL; |
1340 | return set_input(client, state->vid_input, route->input); | 1342 | return set_input(client, state->vid_input, input); |
1341 | } | 1343 | } |
1342 | 1344 | ||
1343 | static int cx25840_s_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *freq) | 1345 | static int cx25840_s_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *freq) |