diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-05-20 21:20:02 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-21 17:59:10 (GMT) |
commit | 61dd149b102d00cea3815a161e07cd41fcc0d737 (patch) | |
tree | c7ad72bb346799ce63114d8e420e3a231570af3c /drivers/staging/comedi/comedidev.h | |
parent | 4422a6c14d0d0bfe519ec487693f1787f64b0b90 (diff) | |
download | linux-fsl-qoriq-61dd149b102d00cea3815a161e07cd41fcc0d737.tar.xz |
staging: comedi: introduce comedi_to_usb_dev()
Introduce a helper function to get a usb_device pointer from a
comedi_device pointer.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedidev.h')
-rw-r--r-- | drivers/staging/comedi/comedidev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/comedi/comedidev.h b/drivers/staging/comedi/comedidev.h index a31915f..ab926a6 100644 --- a/drivers/staging/comedi/comedidev.h +++ b/drivers/staging/comedi/comedidev.h @@ -491,6 +491,7 @@ struct usb_driver; struct usb_interface; struct usb_interface *comedi_to_usb_interface(struct comedi_device *); +struct usb_device *comedi_to_usb_dev(struct comedi_device *); int comedi_usb_auto_config(struct usb_interface *, struct comedi_driver *, unsigned long context); |