diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-07-22 13:20:12 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:46 -0400 |
commit | 95f73c5b57990c97047c200b8746ab62a360c5bc (patch) | |
tree | eb7eb4d2a2206b76ef6d91ad14cbd16ea6ed979c /drivers/media/video | |
parent | 95fc2ead8406a6d0aa6d8ccf30125f4a50ae323f (diff) |
V4L/DVB (8561): make ivtv_claim_stream() static
ivtv_claim_stream() can now become static.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-fileops.c | 2 | ||||
-rw-r--r-- | drivers/media/video/ivtv/ivtv-fileops.h | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c index 7ec5c99f9ad1..304261efc53d 100644 --- a/drivers/media/video/ivtv/ivtv-fileops.c +++ b/drivers/media/video/ivtv/ivtv-fileops.c | |||
@@ -39,7 +39,7 @@ | |||
39 | associated VBI streams are also automatically claimed. | 39 | associated VBI streams are also automatically claimed. |
40 | Possible error returns: -EBUSY if someone else has claimed | 40 | Possible error returns: -EBUSY if someone else has claimed |
41 | the stream or 0 on success. */ | 41 | the stream or 0 on success. */ |
42 | int ivtv_claim_stream(struct ivtv_open_id *id, int type) | 42 | static int ivtv_claim_stream(struct ivtv_open_id *id, int type) |
43 | { | 43 | { |
44 | struct ivtv *itv = id->itv; | 44 | struct ivtv *itv = id->itv; |
45 | struct ivtv_stream *s = &itv->streams[type]; | 45 | struct ivtv_stream *s = &itv->streams[type]; |
diff --git a/drivers/media/video/ivtv/ivtv-fileops.h b/drivers/media/video/ivtv/ivtv-fileops.h index 2c8d5186c9c3..df81e790147f 100644 --- a/drivers/media/video/ivtv/ivtv-fileops.h +++ b/drivers/media/video/ivtv/ivtv-fileops.h | |||
@@ -38,11 +38,6 @@ void ivtv_unmute(struct ivtv *itv); | |||
38 | 38 | ||
39 | /* Utilities */ | 39 | /* Utilities */ |
40 | 40 | ||
41 | /* Try to claim a stream for the filehandle. Return 0 on success, | ||
42 | -EBUSY if stream already claimed. Once a stream is claimed, it | ||
43 | remains claimed until the associated filehandle is closed. */ | ||
44 | int ivtv_claim_stream(struct ivtv_open_id *id, int type); | ||
45 | |||
46 | /* Release a previously claimed stream. */ | 41 | /* Release a previously claimed stream. */ |
47 | void ivtv_release_stream(struct ivtv_stream *s); | 42 | void ivtv_release_stream(struct ivtv_stream *s); |
48 | 43 | ||