mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-25 03:22:39 +00:00
usb: core: add a 'type' parameter to usb_get_status()
This new 'type' parameter will allows interested drivers to request for PTM status or Standard status. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d9e1e1484a
commit
2e43f0fe37
@@ -1766,12 +1766,13 @@ extern int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe,
|
||||
extern int usb_get_descriptor(struct usb_device *dev, unsigned char desctype,
|
||||
unsigned char descindex, void *buf, int size);
|
||||
extern int usb_get_status(struct usb_device *dev,
|
||||
int recip, int target, void *data);
|
||||
int recip, int type, int target, void *data);
|
||||
|
||||
static inline int usb_get_std_status(struct usb_device *dev,
|
||||
int recip, int target, void *data)
|
||||
{
|
||||
return usb_get_status(dev, recip, target, data);
|
||||
return usb_get_status(dev, recip, USB_STATUS_TYPE_STANDARD, target,
|
||||
data);
|
||||
}
|
||||
|
||||
extern int usb_string(struct usb_device *dev, int index,
|
||||
|
||||
Reference in New Issue
Block a user