USB: Add a usb_pipe_endpoint() convenience function
authorMatthew Wilcox <willy@linux.intel.com>
Fri, 30 Apr 2010 19:11:29 +0000 (13:11 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:41 +0000 (13:21 -0700)
commitfe54b058de9d1df5fef9e2a559651f4b7c9f04b1
tree9ed1f427416478e8832f5ca67c17bd8433a87630
parentb18a23495fd4492081a61373fc3ef9f5c59e094a
USB: Add a usb_pipe_endpoint() convenience function

Converting a pipe number to a struct usb_host_endpoint pointer is a little
messy.  Introduce a new convenience function to hide the mess.

Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/message.c
drivers/usb/core/urb.c
include/linux/usb.h