summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2017-11-02 09:57:38 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-07 15:47:19 +0100
commit6f27f4f97ee8cbec99b429b653333f4e781a47a1 (patch)
treefac1a6c4a9d9c87db91d81c970d9c36e877f16e4 /drivers
parentUSB: gadget: Remove redundant license text (diff)
downloadlinux-6f27f4f97ee8cbec99b429b653333f4e781a47a1.tar.xz
linux-6f27f4f97ee8cbec99b429b653333f4e781a47a1.zip
usb: core: add Status Type definitions
USB 3.1 added a PTM_STATUS type. Let's add a define for it and following patches will let usb_get_status() accept the new argument. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/core/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c
index 5e8379b42f47..f35cbfa2b87b 100644
--- a/drivers/usb/core/message.c
+++ b/drivers/usb/core/message.c
@@ -946,8 +946,8 @@ int usb_get_status(struct usb_device *dev, int type, int target, void *data)
return -ENOMEM;
ret = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0),
- USB_REQ_GET_STATUS, USB_DIR_IN | type, 0, target, status,
- sizeof(*status), USB_CTRL_GET_TIMEOUT);
+ USB_REQ_GET_STATUS, USB_DIR_IN | type, USB_STATUS_TYPE_STANDARD,
+ target, status, sizeof(*status), USB_CTRL_GET_TIMEOUT);
if (ret == 2) {
*(u16 *) data = le16_to_cpu(*status);