aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/driver.c
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 /drivers/usb/core/driver.c
parentusb: core: rename usb_get_status() 'type' argument to 'recip' (diff)
downloadlinux-dev-d9e1e1484ade396b3a979ba6c68798dbaceed1b9.tar.xz
linux-dev-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 'drivers/usb/core/driver.c')
-rw-r--r--drivers/usb/core/driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c
index 4b941a3a746e..64262a9a8829 100644
--- a/drivers/usb/core/driver.c
+++ b/drivers/usb/core/driver.c
@@ -1340,8 +1340,8 @@ static int usb_suspend_both(struct usb_device *udev, pm_message_t msg)
int err;
u16 devstat;
- err = usb_get_status(udev, USB_RECIP_DEVICE, 0,
- &devstat);
+ err = usb_get_std_status(udev, USB_RECIP_DEVICE, 0,
+ &devstat);
if (err) {
dev_err(&udev->dev,
"Failed to suspend device, error %d\n",