USB: Move definitions from usb.h to usb/ch9.h

Previous thread: USB: count reaches -1, tested 0 by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:28 pm. (1 message)

Next thread: USB: serial generic resume function fix by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:28 pm. (1 message)
From: Linux Kernel Mailing List
Date: Thursday, March 26, 2009 - 12:28 pm

Gitweb:     http://git.kernel.org/linus/4d6914b72966862f37de634299a80ca2a4b1829f
Commit:     4d6914b72966862f37de634299a80ca2a4b1829f
Parent:     ee069fb1185895e725ad942c7a529f947e25166d
Author:     Julia Lawall <julia@diku.dk>
AuthorDate: Mon Dec 29 22:48:19 2008 +0100
Committer:  Greg Kroah-Hartman <gregkh@suse.de>
CommitDate: Tue Mar 24 16:20:27 2009 -0700

    USB: Move definitions from usb.h to usb/ch9.h
    
    The functions:
    
    usb_endpoint_dir_in(epd)
    usb_endpoint_dir_out(epd)
    usb_endpoint_is_bulk_in(epd)
    usb_endpoint_is_bulk_out(epd)
    usb_endpoint_is_int_in(epd)
    usb_endpoint_is_int_out(epd)
    usb_endpoint_is_isoc_in(epd)
    usb_endpoint_is_isoc_out(epd)
    usb_endpoint_num(epd)
    usb_endpoint_type(epd)
    usb_endpoint_xfer_bulk(epd)
    usb_endpoint_xfer_control(epd)
    usb_endpoint_xfer_int(epd)
    usb_endpoint_xfer_isoc(epd)
    
    are moved from include/linux/usb.h to include/linux/usb/ch9.h.
    include/linux/usb/ch9.h makes more sense for these functions because they
    only depend on constants that are defined in this file.
    
    Signed-off-by: Julia Lawall <julia@diku.dk>
    Acked-by: David Brownell <dbrownell@users.sourceforge.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
 include/linux/usb.h     |  180 -----------------------------------------------
 include/linux/usb/ch9.h |  179 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 179 insertions(+), 180 deletions(-)

diff --git a/include/linux/usb.h b/include/linux/usb.h
index 88079fd..0c05ff6 100644
--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -643,186 +643,6 @@ static inline int usb_make_path(struct usb_device *dev, char *buf, size_t size)
 
 /*-------------------------------------------------------------------------*/
 
-/**
- * usb_endpoint_num - get the endpoint's number
- * @epd: endpoint to be checked
- *
- * Returns @epd's number: 0 to 15.
- */
-static inline int usb_endpoint_num(const struct ...
Previous thread: USB: count reaches -1, tested 0 by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:28 pm. (1 message)

Next thread: USB: serial generic resume function fix by Linux Kernel Mailing List on Thursday, March 26, 2009 - 12:28 pm. (1 message)