kernel-fxtec-pro1x/include/linux/usb
Sarah Sharp d9f5343e35 USB: Remove duplicate USB 3.0 hub feature #defines.
Somehow we ended up with duplicate hub feature #defines in ch11.h.
Tatyana Brokhman first created the USB 3.0 hub feature macros in 2.6.38
with commit 0eadcc0920 "usb: USB3.0 ch11
definitions".  In 2.6.39, I modified a patch from John Youn that added
similar macros in a different place in the same file, and committed
dbe79bbe9d "USB 3.0 Hub Changes".

Some of the #defines used different names for the same values.  Others
used exactly the same names with the same values, like these gems:

 #define USB_PORT_FEAT_BH_PORT_RESET     28
...
 #define USB_PORT_FEAT_BH_PORT_RESET            28

According to my very geeky husband (who looked it up in the C99 spec),
it is allowed to have object-like macros with duplicate names as long as
the replacement list is exactly the same.  However, he recalled that
some compilers will give warnings when they find duplicate macros.  It's
probably best to remove the duplicates in the stable tree, so that the
code compiles for everyone.

The macros are now fixed to move the feature requests that are specific
to USB 3.0 hubs into a new section (out of the USB 2.0 hub feature
section), and use the most common macro name.

This patch should be backported to 2.6.39.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: Tatyana Brokhman <tlinder@codeaurora.org>
Cc: John Youn <johnyoun@synopsys.com>
Cc: Jamey Sharp <jamey@minilop.net>
Cc: stable@vger.kernel.org
2012-02-10 14:24:31 -08:00
..
association.h
atmel_usba_udc.h
audio-v2.h
audio.h
c67x00.h
cdc.h
ch9.h usb: ch9.h: usb_endpoint_maxp() uses __le16_to_cpu() 2012-02-01 15:56:19 -08:00
ch11.h USB: Remove duplicate USB 3.0 hub feature #defines. 2012-02-10 14:24:31 -08:00
composite.h
ehci_def.h
functionfs.h
g_hid.h
g_printer.h
gadget.h usb: gadget: introduce support for sg lists 2011-12-21 13:24:44 +02:00
gadgetfs.h
gpio_vbus.h
hcd.h
input.h
intel_mid_otg.h
iowarrior.h
irda.h
isp116x.h
isp1362.h
isp1760.h
Kbuild
langwell_udc.h
m66592.h
midi.h
msm_hsusb.h
msm_hsusb_hw.h
musb.h
net2280.h
otg.h
quirks.h
r8a66597.h
renesas_usbhs.h
rndis_host.h
serial.h
sl811.h
storage.h
tmc.h
ulpi.h
usbnet.h
video.h
wusb-wa.h
wusb.h