usb: core: introduce a new usb_get_std_status() helper
This new helper is a simple wrapper around usb_get_status(). This patch is in preparation to adding support for fetching PTM_STATUS types. No functional changes. 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
3c377ef100
commit
d9e1e1484a
@@ -1767,6 +1767,13 @@ 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);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
extern int usb_string(struct usb_device *dev, int index,
|
||||
char *buf, size_t size);
|
||||
|
||||
|
Reference in New Issue
Block a user