summaryrefslogtreecommitdiff
path: root/include/linux/usb.h
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2017-11-02 11:57:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-07 17:47:20 +0300
commitf8f3e4acbde3dff2e433d02476034606e07ac742 (patch)
tree4abdb34a9c8accbb88742a4fd9c705acf9b77b4f /include/linux/usb.h
parent2e43f0fe379c317d1ca27a69d860e397682ce957 (diff)
downloadlinux-f8f3e4acbde3dff2e433d02476034606e07ac742.tar.xz
usb: core: add a new usb_get_ptm_status() helper
Drivers who are interested in the PTM status stype, should use this new helper to make sure they issue the correct GetStatus message. 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h
index 6228d8177bfe..3555936025ec 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -1775,6 +1775,12 @@ static inline int usb_get_std_status(struct usb_device *dev,
data);
}
+static inline int usb_get_ptm_status(struct usb_device *dev, void *data)
+{
+ return usb_get_status(dev, USB_RECIP_DEVICE, USB_STATUS_TYPE_PTM,
+ 0, data);
+}
+
extern int usb_string(struct usb_device *dev, int index,
char *buf, size_t size);