summaryrefslogtreecommitdiff
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2017-11-02 10:57:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-07 15:47:19 +0100
commitd9e1e1484ade396b3a979ba6c68798dbaceed1b9 (patch)
tree97c22ea710a45a9a1d992aba525ab3d20eb904f9 /include/linux/usb.h
parent3c377ef1000d57cb1faf8b86ea77cfa47141db33 (diff)
downloadlwn-d9e1e1484ade396b3a979ba6c68798dbaceed1b9.tar.gz
lwn-d9e1e1484ade396b3a979ba6c68798dbaceed1b9.zip
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>
Diffstat (limited to 'include/linux/usb.h')
-rw-r--r--include/linux/usb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 2e2c1d40081b..e86b6a2a35e4 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -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);