diff options
author | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-11-02 10:57:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-07 15:47:19 +0100 |
commit | d9e1e1484ade396b3a979ba6c68798dbaceed1b9 (patch) | |
tree | 97c22ea710a45a9a1d992aba525ab3d20eb904f9 /drivers/usb/core/driver.c | |
parent | 3c377ef1000d57cb1faf8b86ea77cfa47141db33 (diff) | |
download | linux-d9e1e1484ade396b3a979ba6c68798dbaceed1b9.tar.gz linux-d9e1e1484ade396b3a979ba6c68798dbaceed1b9.tar.bz2 linux-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.c | 4 |
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", |