diff options
author | Sakari Ailus <sakari.ailus@nokia.com> | 2008-10-18 11:28:36 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-21 12:31:20 -0400 |
commit | 36499e525f6d2c0aba7c7f619d7a6081c56707ca (patch) | |
tree | 50053848169d4f74dbe2b10c63ae2759aa9b7322 /drivers | |
parent | 84389910d0f760cea22a5e58ee16b3b9713d456d (diff) |
V4L/DVB (9322): v4l2-int-if: Export more interfaces to modules
Export v4l2_int_device_try_attach_all. This allows initiating the
initialisation of int if device after the drivers have been registered.
Also allow drivers to call ioctls if v4l2-int-if was compiled as
module.
Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/v4l2-int-device.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/video/v4l2-int-device.c b/drivers/media/video/v4l2-int-device.c index 0e4549922f26..a935bae538ef 100644 --- a/drivers/media/video/v4l2-int-device.c +++ b/drivers/media/video/v4l2-int-device.c | |||
@@ -32,7 +32,7 @@ | |||
32 | static DEFINE_MUTEX(mutex); | 32 | static DEFINE_MUTEX(mutex); |
33 | static LIST_HEAD(int_list); | 33 | static LIST_HEAD(int_list); |
34 | 34 | ||
35 | static void v4l2_int_device_try_attach_all(void) | 35 | void v4l2_int_device_try_attach_all(void) |
36 | { | 36 | { |
37 | struct v4l2_int_device *m, *s; | 37 | struct v4l2_int_device *m, *s; |
38 | 38 | ||
@@ -66,6 +66,7 @@ static void v4l2_int_device_try_attach_all(void) | |||
66 | } | 66 | } |
67 | } | 67 | } |
68 | } | 68 | } |
69 | EXPORT_SYMBOL_GPL(v4l2_int_device_try_attach_all); | ||
69 | 70 | ||
70 | static int ioctl_sort_cmp(const void *a, const void *b) | 71 | static int ioctl_sort_cmp(const void *a, const void *b) |
71 | { | 72 | { |
@@ -144,6 +145,7 @@ int v4l2_int_ioctl_0(struct v4l2_int_device *d, int cmd) | |||
144 | find_ioctl(d->u.slave, cmd, | 145 | find_ioctl(d->u.slave, cmd, |
145 | (v4l2_int_ioctl_func *)no_such_ioctl_0))(d); | 146 | (v4l2_int_ioctl_func *)no_such_ioctl_0))(d); |
146 | } | 147 | } |
148 | EXPORT_SYMBOL_GPL(v4l2_int_ioctl_0); | ||
147 | 149 | ||
148 | static int no_such_ioctl_1(struct v4l2_int_device *d, void *arg) | 150 | static int no_such_ioctl_1(struct v4l2_int_device *d, void *arg) |
149 | { | 151 | { |
@@ -156,5 +158,6 @@ int v4l2_int_ioctl_1(struct v4l2_int_device *d, int cmd, void *arg) | |||
156 | find_ioctl(d->u.slave, cmd, | 158 | find_ioctl(d->u.slave, cmd, |
157 | (v4l2_int_ioctl_func *)no_such_ioctl_1))(d, arg); | 159 | (v4l2_int_ioctl_func *)no_such_ioctl_1))(d, arg); |
158 | } | 160 | } |
161 | EXPORT_SYMBOL_GPL(v4l2_int_ioctl_1); | ||
159 | 162 | ||
160 | MODULE_LICENSE("GPL"); | 163 | MODULE_LICENSE("GPL"); |