USB: simplify the interface of usb_get_status()
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 30 Jul 2013 19:35:40 +0000 (15:35 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2013 00:29:02 +0000 (17:29 -0700)
commit15b7336e02d998720c5ace47036f7e539365bb05
treedb90ccb73d4b50fdfab0c3a93144b9d803622c46
parentb977a3068a284b2ad4612cdb8ca326cbd2a7ffc9
USB: simplify the interface of usb_get_status()

This patch simplifies the interface presented by usb_get_status().
Instead of forcing callers to check for the proper data length and
convert the status value to host byte order, the function will now
do these things itself.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c
drivers/usb/core/message.c
drivers/usb/misc/usbtest.c