aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc/usbtest.c
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2017-11-02 04:57:40 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-07 09:47:19 -0500
commitd9e1e1484ade396b3a979ba6c68798dbaceed1b9 (patch)
tree97c22ea710a45a9a1d992aba525ab3d20eb904f9 /drivers/usb/misc/usbtest.c
parent3c377ef1000d57cb1faf8b86ea77cfa47141db33 (diff)
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 'drivers/usb/misc/usbtest.c')
-rw-r--r--drivers/usb/misc/usbtest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c
index aeda01f037c1..203f29894bce 100644
--- a/drivers/usb/misc/usbtest.c
+++ b/drivers/usb/misc/usbtest.c
@@ -1016,7 +1016,7 @@ static int ch9_postconfig(struct usbtest_dev *dev)
1016 /* FIXME fetch strings from at least the device descriptor */ 1016 /* FIXME fetch strings from at least the device descriptor */
1017 1017
1018 /* [9.4.5] get_status always works */ 1018 /* [9.4.5] get_status always works */
1019 retval = usb_get_status(udev, USB_RECIP_DEVICE, 0, dev->buf); 1019 retval = usb_get_std_status(udev, USB_RECIP_DEVICE, 0, dev->buf);
1020 if (retval) { 1020 if (retval) {
1021 dev_err(&iface->dev, "get dev status --> %d\n", retval); 1021 dev_err(&iface->dev, "get dev status --> %d\n", retval);
1022 return retval; 1022 return retval;
@@ -1026,7 +1026,7 @@ static int ch9_postconfig(struct usbtest_dev *dev)
1026 * the device's remote wakeup feature ... if we can, test that here 1026 * the device's remote wakeup feature ... if we can, test that here
1027 */ 1027 */
1028 1028
1029 retval = usb_get_status(udev, USB_RECIP_INTERFACE, 1029 retval = usb_get_std_status(udev, USB_RECIP_INTERFACE,
1030 iface->altsetting[0].desc.bInterfaceNumber, dev->buf); 1030 iface->altsetting[0].desc.bInterfaceNumber, dev->buf);
1031 if (retval) { 1031 if (retval) {
1032 dev_err(&iface->dev, "get interface status --> %d\n", retval); 1032 dev_err(&iface->dev, "get interface status --> %d\n", retval);
@@ -1615,7 +1615,7 @@ static int verify_not_halted(struct usbtest_dev *tdev, int ep, struct urb *urb)
1615 u16 status; 1615 u16 status;
1616 1616
1617 /* shouldn't look or act halted */ 1617 /* shouldn't look or act halted */
1618 retval = usb_get_status(urb->dev, USB_RECIP_ENDPOINT, ep, &status); 1618 retval = usb_get_std_status(urb->dev, USB_RECIP_ENDPOINT, ep, &status);
1619 if (retval < 0) { 1619 if (retval < 0) {
1620 ERROR(tdev, "ep %02x couldn't get no-halt status, %d\n", 1620 ERROR(tdev, "ep %02x couldn't get no-halt status, %d\n",
1621 ep, retval); 1621 ep, retval);
@@ -1637,7 +1637,7 @@ static int verify_halted(struct usbtest_dev *tdev, int ep, struct urb *urb)
1637 u16 status; 1637 u16 status;
1638 1638
1639 /* should look and act halted */ 1639 /* should look and act halted */
1640 retval = usb_get_status(urb->dev, USB_RECIP_ENDPOINT, ep, &status); 1640 retval = usb_get_std_status(urb->dev, USB_RECIP_ENDPOINT, ep, &status);
1641 if (retval < 0) { 1641 if (retval < 0) {
1642 ERROR(tdev, "ep %02x couldn't get halt status, %d\n", 1642 ERROR(tdev, "ep %02x couldn't get halt status, %d\n",
1643 ep, retval); 1643 ep, retval);