staging: comedi: add comedi to usb interface helper
authorIan Abbott <abbotti@mev.co.uk>
Sat, 27 Oct 2012 20:44:16 +0000 (21:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Oct 2012 22:02:08 +0000 (15:02 -0700)
commit0a577b823d0202b94eeef0e6b2b5653527fd6134
treed3f201a351fd9f0700fac5bf716210418fcf6c20
parentd5121914a22c22d849abb57d086fe408c9ca2c0c
staging: comedi: add comedi to usb interface helper

Add inline helper function `comedi_to_usb_interface()` to get the
pointer to `struct usb_interface` associated with the comedi device.
This pointer is set by the call to `comedi_usb_auto_config()`.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedidev.h