diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2005-09-09 16:02:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 16:57:41 -0400 |
commit | 47dc3d688d04f06d8ef90a06c48930906fbc4a8c (patch) | |
tree | 705fc3f433180d96e357bdcf4814408169367018 /drivers/media/dvb/dvb-usb/dvb-usb.h | |
parent | 62703b9d72114a563488cd4be6d0827618395589 (diff) |
[PATCH] dvb: usb: core: change dvb_usb_device_init() API
Change the init call to optionally return the new dvb_usb_device directly.
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Johannes Stezenbach <js@linuxtv.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/dvb-usb.h')
-rw-r--r-- | drivers/media/dvb/dvb-usb/dvb-usb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb.h b/drivers/media/dvb/dvb-usb/dvb-usb.h index a80567caf508..0e4f1035b0dd 100644 --- a/drivers/media/dvb/dvb-usb/dvb-usb.h +++ b/drivers/media/dvb/dvb-usb/dvb-usb.h | |||
@@ -127,7 +127,7 @@ struct dvb_usb_device; | |||
127 | * helper functions. | 127 | * helper functions. |
128 | * | 128 | * |
129 | * @urb: describes the kind of USB transfer used for MPEG2-TS-streaming. | 129 | * @urb: describes the kind of USB transfer used for MPEG2-TS-streaming. |
130 | * Currently only BULK is implemented | 130 | * (BULK or ISOC) |
131 | * | 131 | * |
132 | * @num_device_descs: number of struct dvb_usb_device_description in @devices | 132 | * @num_device_descs: number of struct dvb_usb_device_description in @devices |
133 | * @devices: array of struct dvb_usb_device_description compatibles with these | 133 | * @devices: array of struct dvb_usb_device_description compatibles with these |
@@ -310,7 +310,7 @@ struct dvb_usb_device { | |||
310 | void *priv; | 310 | void *priv; |
311 | }; | 311 | }; |
312 | 312 | ||
313 | extern int dvb_usb_device_init(struct usb_interface *, struct dvb_usb_properties *, struct module *); | 313 | extern int dvb_usb_device_init(struct usb_interface *, struct dvb_usb_properties *, struct module *, struct dvb_usb_device **); |
314 | extern void dvb_usb_device_exit(struct usb_interface *); | 314 | extern void dvb_usb_device_exit(struct usb_interface *); |
315 | 315 | ||
316 | /* the generic read/write method for device control */ | 316 | /* the generic read/write method for device control */ |