diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-05-01 07:03:24 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:58:54 -0400 |
commit | ffb4877ba013f94322083f77cbb05b35c2a218aa (patch) | |
tree | 0d041da73986e1dc7c845ff4418fb20f46bd7506 /drivers/media/video/cx18/cx18-ioctl.c | |
parent | 530d2d32068eaf3616e0ce9e58a5fde5701c3380 (diff) |
V4L/DVB: v4l2-common: simplify prio utility functions
v4l2_prio_init/open/close returned an int when in fact they would
always return 0. Make these void functions.
v4l2_prio_close and v4l2_prio_check pass an enum v4l2_priority as a
pointer for no good reason. Replace with a normal enum v4l2_priority
argument.
These changes will simplify the work of moving priority handling into
the v4l core.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-ioctl.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-ioctl.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/video/cx18/cx18-ioctl.c b/drivers/media/video/cx18/cx18-ioctl.c index 2e6addab3ed..2530fc54daa 100644 --- a/drivers/media/video/cx18/cx18-ioctl.c +++ b/drivers/media/video/cx18/cx18-ioctl.c | |||
@@ -277,7 +277,7 @@ static int cx18_s_fmt_vid_cap(struct file *file, void *fh, | |||
277 | int ret; | 277 | int ret; |
278 | int w, h; | 278 | int w, h; |
279 | 279 | ||
280 | ret = v4l2_prio_check(&cx->prio, &id->prio); | 280 | ret = v4l2_prio_check(&cx->prio, id->prio); |
281 | if (ret) | 281 | if (ret) |
282 | return ret; | 282 | return ret; |
283 | 283 | ||
@@ -306,7 +306,7 @@ static int cx18_s_fmt_vbi_cap(struct file *file, void *fh, | |||
306 | struct cx18 *cx = id->cx; | 306 | struct cx18 *cx = id->cx; |
307 | int ret; | 307 | int ret; |
308 | 308 | ||
309 | ret = v4l2_prio_check(&cx->prio, &id->prio); | 309 | ret = v4l2_prio_check(&cx->prio, id->prio); |
310 | if (ret) | 310 | if (ret) |
311 | return ret; | 311 | return ret; |
312 | 312 | ||
@@ -341,7 +341,7 @@ static int cx18_s_fmt_sliced_vbi_cap(struct file *file, void *fh, | |||
341 | int ret; | 341 | int ret; |
342 | struct v4l2_sliced_vbi_format *vbifmt = &fmt->fmt.sliced; | 342 | struct v4l2_sliced_vbi_format *vbifmt = &fmt->fmt.sliced; |
343 | 343 | ||
344 | ret = v4l2_prio_check(&cx->prio, &id->prio); | 344 | ret = v4l2_prio_check(&cx->prio, id->prio); |
345 | if (ret) | 345 | if (ret) |
346 | return ret; | 346 | return ret; |
347 | 347 | ||
@@ -549,7 +549,7 @@ static int cx18_s_crop(struct file *file, void *fh, struct v4l2_crop *crop) | |||
549 | struct cx18 *cx = id->cx; | 549 | struct cx18 *cx = id->cx; |
550 | int ret; | 550 | int ret; |
551 | 551 | ||
552 | ret = v4l2_prio_check(&cx->prio, &id->prio); | 552 | ret = v4l2_prio_check(&cx->prio, id->prio); |
553 | if (ret) | 553 | if (ret) |
554 | return ret; | 554 | return ret; |
555 | 555 | ||
@@ -601,7 +601,7 @@ int cx18_s_input(struct file *file, void *fh, unsigned int inp) | |||
601 | struct cx18 *cx = id->cx; | 601 | struct cx18 *cx = id->cx; |
602 | int ret; | 602 | int ret; |
603 | 603 | ||
604 | ret = v4l2_prio_check(&cx->prio, &id->prio); | 604 | ret = v4l2_prio_check(&cx->prio, id->prio); |
605 | if (ret) | 605 | if (ret) |
606 | return ret; | 606 | return ret; |
607 | 607 | ||
@@ -647,7 +647,7 @@ int cx18_s_frequency(struct file *file, void *fh, struct v4l2_frequency *vf) | |||
647 | struct cx18 *cx = id->cx; | 647 | struct cx18 *cx = id->cx; |
648 | int ret; | 648 | int ret; |
649 | 649 | ||
650 | ret = v4l2_prio_check(&cx->prio, &id->prio); | 650 | ret = v4l2_prio_check(&cx->prio, id->prio); |
651 | if (ret) | 651 | if (ret) |
652 | return ret; | 652 | return ret; |
653 | 653 | ||
@@ -675,7 +675,7 @@ int cx18_s_std(struct file *file, void *fh, v4l2_std_id *std) | |||
675 | struct cx18 *cx = id->cx; | 675 | struct cx18 *cx = id->cx; |
676 | int ret; | 676 | int ret; |
677 | 677 | ||
678 | ret = v4l2_prio_check(&cx->prio, &id->prio); | 678 | ret = v4l2_prio_check(&cx->prio, id->prio); |
679 | if (ret) | 679 | if (ret) |
680 | return ret; | 680 | return ret; |
681 | 681 | ||
@@ -715,7 +715,7 @@ static int cx18_s_tuner(struct file *file, void *fh, struct v4l2_tuner *vt) | |||
715 | struct cx18 *cx = id->cx; | 715 | struct cx18 *cx = id->cx; |
716 | int ret; | 716 | int ret; |
717 | 717 | ||
718 | ret = v4l2_prio_check(&cx->prio, &id->prio); | 718 | ret = v4l2_prio_check(&cx->prio, id->prio); |
719 | if (ret) | 719 | if (ret) |
720 | return ret; | 720 | return ret; |
721 | 721 | ||