android_kernel_oneplus_msm8998/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 USB: wusb: annotate association types withe proper endianness 2009-01-07 09:59:51 -08:00
atmel_usba_udc.h USB: include/usb/*.h checkpatch cleanup 2010-05-20 13:21:47 -07:00
audio-v2.h ALSA: usb-audio: move and add some comments 2010-06-23 16:09:50 +02:00
audio.h
c67x00.h USB: add Cypress c67x00 OTG controller core driver 2008-05-02 10:25:56 -07:00
cdc.h CDC NCM errata updates for cdc.h 2011-02-08 13:54:42 -08:00
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 Fix common misspellings 2011-03-31 11:26:23 -03:00
g_hid.h USB: gadget: add HID gadget driver 2010-05-20 13:21:35 -07:00
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 USB: Remove the SAW_IRQ hcd flag 2011-11-14 16:46:06 -08:00
input.h
intel_mid_otg.h USB OTG: Add common data structure for Intel MID Platform (Langwell/Penwell) 2010-10-22 10:21:33 -07:00
iowarrior.h
irda.h usb: irda: cleanup on ir-usb module 2008-07-21 15:16:27 -07:00
isp116x.h
isp1362.h
isp1760.h USB: isp1760: allow platform devices to customize devflags 2009-09-23 06:46:29 -07:00
Kbuild
langwell_udc.h
m66592.h
midi.h Fix common misspellings 2011-03-31 11:26:23 -03:00
msm_hsusb.h USB: OTG: msm: Implement charger detection 2011-05-06 18:27:48 -07:00
msm_hsusb_hw.h
musb.h
net2280.h USB: include/usb/*.h checkpatch cleanup 2010-05-20 13:21:47 -07:00
otg.h
quirks.h USB delay init quirk for logitech Harmony 700-series devices 2010-08-10 14:35:41 -07:00
r8a66597.h usb: gadget: r8a66597-udc: add support for SUDMAC 2011-10-13 20:38:39 +03:00
renesas_usbhs.h usb: gadget: renesas_usbhs: add platform power control function 2011-12-12 11:44:58 +02:00
rndis_host.h rndis_host: Poll status before control channel where necessary 2011-04-13 14:48:55 -07:00
serial.h USB: serial: add support for multiple read urbs 2011-11-15 10:46:13 -08:00
sl811.h
storage.h
tmc.h USB: add USB test and measurement class driver 2008-10-17 14:40:51 -07:00
ulpi.h
usbnet.h usbnet: Resubmit interrupt URB if device is open 2011-04-28 12:56:09 -07:00
video.h
wusb-wa.h USB: include/usb/*.h checkpatch cleanup 2010-05-20 13:21:47 -07:00
wusb.h Fix common misspellings 2011-03-31 11:26:23 -03:00