Re: [PATCH 10/13] drivers/usb/gadget: use USB API functions ratherthan constants

From: John Daiker
Date: Mon Dec 29 2008 - 15:49:29 EST


On 12/29/2008 12:22 PM, David Brownell wrote:

On Monday 29 December 2008, Alan Stern wrote:
On Mon, 29 Dec 2008, David Brownell wrote:

Those functions were supposed to go into<linux/usb/ch9.h>, as
I recall, since they weren't specific to the host side stack.

Having them added to the wrong file is surely part of why
they've only been used by host side drivers. :)
Would you like to write a patch moving the functions to ch9.h? Or
would you like to ask Julia or me to do it?

Someone other than me. ;)

Maybe someone on K-J will want to volunteer with a patch
before either you or Julia...

- Dave
So you're saying that these 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_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)

Should be defined in ch9.h instead of usb.h?

If that's the case, then I'll be glad to cook up a patch! :)

~John

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/