diff options
author | Antti Palosaari <crope@iki.fi> | 2013-02-26 13:01:48 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-18 16:43:15 -0300 |
commit | acb0549acc270c8206ecfdd35d34fc349c3457a0 (patch) | |
tree | 64973a8cde6e41ca98411b663eed23b8aefe0512 /drivers/media/usb/dvb-usb-v2/dvb_usb.h | |
parent | 972b072a83316e0d5a1fd0cb78eb99a57a305dce (diff) | |
download | linux-acb0549acc270c8206ecfdd35d34fc349c3457a0.tar.gz linux-acb0549acc270c8206ecfdd35d34fc349c3457a0.tar.bz2 linux-acb0549acc270c8206ecfdd35d34fc349c3457a0.zip |
[media] dvb_usb_v2: locked versions of USB bulk IO functions
Implement:
dvb_usbv2_generic_rw_locked()
dvb_usbv2_generic_write_locked()
Caller must hold device lock when locked versions are called.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2/dvb_usb.h')
-rw-r--r-- | drivers/media/usb/dvb-usb-v2/dvb_usb.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/dvb_usb.h b/drivers/media/usb/dvb-usb-v2/dvb_usb.h index 3cac8bd0b116..42801f8ecaa8 100644 --- a/drivers/media/usb/dvb-usb-v2/dvb_usb.h +++ b/drivers/media/usb/dvb-usb-v2/dvb_usb.h @@ -400,5 +400,9 @@ extern int dvb_usbv2_reset_resume(struct usb_interface *); /* the generic read/write method for device control */ extern int dvb_usbv2_generic_rw(struct dvb_usb_device *, u8 *, u16, u8 *, u16); extern int dvb_usbv2_generic_write(struct dvb_usb_device *, u8 *, u16); +/* caller must hold lock when locked versions are called */ +extern int dvb_usbv2_generic_rw_locked(struct dvb_usb_device *, + u8 *, u16, u8 *, u16); +extern int dvb_usbv2_generic_write_locked(struct dvb_usb_device *, u8 *, u16); #endif |