Commit 7f9985c2 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

USB: usb gadget, dead config cleanup

Remove some dead CONFIG_ symbols, and document the status of a few others.
The "gadget_chips.h" references are by and large to drivers which exist
but haven't yet been submitted for merging to the main 2.6 tree.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 45b844df
...@@ -292,7 +292,7 @@ MODULE_PARM_DESC(host_addr, "Host Ethernet Address"); ...@@ -292,7 +292,7 @@ MODULE_PARM_DESC(host_addr, "Host Ethernet Address");
#define DEV_CONFIG_SUBSET #define DEV_CONFIG_SUBSET
#endif #endif
#ifdef CONFIG_USB_GADGET_SH #ifdef CONFIG_USB_GADGET_SUPERH
#define DEV_CONFIG_SUBSET #define DEV_CONFIG_SUBSET
#endif #endif
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
* (And avoiding all runtime comparisons in typical one-choice configs!) * (And avoiding all runtime comparisons in typical one-choice configs!)
* *
* NOTE: some of these controller drivers may not be available yet. * NOTE: some of these controller drivers may not be available yet.
* Some are available on 2.4 kernels; several are available, but not
* yet pushed in the 2.6 mainline tree.
*/ */
#ifdef CONFIG_USB_GADGET_NET2280 #ifdef CONFIG_USB_GADGET_NET2280
#define gadget_is_net2280(g) !strcmp("net2280", (g)->name) #define gadget_is_net2280(g) !strcmp("net2280", (g)->name)
...@@ -33,12 +35,14 @@ ...@@ -33,12 +35,14 @@
#define gadget_is_goku(g) 0 #define gadget_is_goku(g) 0
#endif #endif
/* SH3 UDC -- not yet ported 2.4 --> 2.6 */
#ifdef CONFIG_USB_GADGET_SUPERH #ifdef CONFIG_USB_GADGET_SUPERH
#define gadget_is_sh(g) !strcmp("sh_udc", (g)->name) #define gadget_is_sh(g) !strcmp("sh_udc", (g)->name)
#else #else
#define gadget_is_sh(g) 0 #define gadget_is_sh(g) 0
#endif #endif
/* not yet stable on 2.6 (would help "original Zaurus") */
#ifdef CONFIG_USB_GADGET_SA1100 #ifdef CONFIG_USB_GADGET_SA1100
#define gadget_is_sa1100(g) !strcmp("sa1100_udc", (g)->name) #define gadget_is_sa1100(g) !strcmp("sa1100_udc", (g)->name)
#else #else
...@@ -51,6 +55,7 @@ ...@@ -51,6 +55,7 @@
#define gadget_is_lh7a40x(g) 0 #define gadget_is_lh7a40x(g) 0
#endif #endif
/* handhelds.org tree (?) */
#ifdef CONFIG_USB_GADGET_MQ11XX #ifdef CONFIG_USB_GADGET_MQ11XX
#define gadget_is_mq11xx(g) !strcmp("mq11xx_udc", (g)->name) #define gadget_is_mq11xx(g) !strcmp("mq11xx_udc", (g)->name)
#else #else
...@@ -63,12 +68,14 @@ ...@@ -63,12 +68,14 @@
#define gadget_is_omap(g) 0 #define gadget_is_omap(g) 0
#endif #endif
/* not yet ported 2.4 --> 2.6 */
#ifdef CONFIG_USB_GADGET_N9604 #ifdef CONFIG_USB_GADGET_N9604
#define gadget_is_n9604(g) !strcmp("n9604_udc", (g)->name) #define gadget_is_n9604(g) !strcmp("n9604_udc", (g)->name)
#else #else
#define gadget_is_n9604(g) 0 #define gadget_is_n9604(g) 0
#endif #endif
/* various unstable versions available */
#ifdef CONFIG_USB_GADGET_PXA27X #ifdef CONFIG_USB_GADGET_PXA27X
#define gadget_is_pxa27x(g) !strcmp("pxa27x_udc", (g)->name) #define gadget_is_pxa27x(g) !strcmp("pxa27x_udc", (g)->name)
#else #else
...@@ -93,6 +100,7 @@ ...@@ -93,6 +100,7 @@
#define gadget_is_at91(g) 0 #define gadget_is_at91(g) 0
#endif #endif
/* status unclear */
#ifdef CONFIG_USB_GADGET_IMX #ifdef CONFIG_USB_GADGET_IMX
#define gadget_is_imx(g) !strcmp("imx_udc", (g)->name) #define gadget_is_imx(g) !strcmp("imx_udc", (g)->name)
#else #else
...@@ -106,6 +114,7 @@ ...@@ -106,6 +114,7 @@
#endif #endif
/* Mentor high speed function controller */ /* Mentor high speed function controller */
/* from Montavista kernel (?) */
#ifdef CONFIG_USB_GADGET_MUSBHSFC #ifdef CONFIG_USB_GADGET_MUSBHSFC
#define gadget_is_musbhsfc(g) !strcmp("musbhsfc_udc", (g)->name) #define gadget_is_musbhsfc(g) !strcmp("musbhsfc_udc", (g)->name)
#else #else
...@@ -119,6 +128,7 @@ ...@@ -119,6 +128,7 @@
#define gadget_is_musbhdrc(g) 0 #define gadget_is_musbhdrc(g) 0
#endif #endif
/* from Montavista kernel (?) */
#ifdef CONFIG_USB_GADGET_MPC8272 #ifdef CONFIG_USB_GADGET_MPC8272
#define gadget_is_mpc8272(g) !strcmp("mpc8272_udc", (g)->name) #define gadget_is_mpc8272(g) !strcmp("mpc8272_udc", (g)->name)
#else #else
......
...@@ -1505,7 +1505,7 @@ gadgetfs_setup (struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) ...@@ -1505,7 +1505,7 @@ gadgetfs_setup (struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
} }
break; break;
#ifndef CONFIG_USB_GADGETFS_PXA2XX #ifndef CONFIG_USB_GADGET_PXA2XX
/* PXA automagically handles this request too */ /* PXA automagically handles this request too */
case USB_REQ_GET_CONFIGURATION: case USB_REQ_GET_CONFIGURATION:
if (ctrl->bRequestType != 0x80) if (ctrl->bRequestType != 0x80)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment