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:
Felipe Balbi
2017-11-02 10:57:41 +02:00
committed by Greg Kroah-Hartman
parent d9e1e1484a
commit 2e43f0fe37
2 changed files with 43 additions and 9 deletions

View File

@@ -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,