diff options
author | Laurent Pinchart <laurent.pinchart@skynet.be> | 2009-06-21 17:23:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-23 09:46:20 -0400 |
commit | 512ad27d8667158747de2e8da8a23e8f50e91856 (patch) | |
tree | 3c56c7265a1e2d7530ddb9c31806d3c1086ac6f5 /drivers/usb/gadget/gmidi.c | |
parent | 315ad3028c8aae14891797040f855fc3291a076b (diff) |
USB audio gadget: Prefix all macro definitions with UAC_ in linux/usb/audio.h
linux/usb/audio.h is a public header file that includes definitions
exported to userspace. To avoid namespace clashes, prefix all macro
definitions with UAC_. Existing macros and structures prefixed with
USB_AC_ and USB_AS_ are renamed for consistency.
Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/gmidi.c')
-rw-r--r-- | drivers/usb/gadget/gmidi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/gadget/gmidi.c b/drivers/usb/gadget/gmidi.c index b9312dc6e041..d0b1e836f0e0 100644 --- a/drivers/usb/gadget/gmidi.c +++ b/drivers/usb/gadget/gmidi.c | |||
@@ -191,7 +191,7 @@ module_param(qlen, uint, S_IRUGO); | |||
191 | #define GMIDI_MS_INTERFACE 1 | 191 | #define GMIDI_MS_INTERFACE 1 |
192 | #define GMIDI_NUM_INTERFACES 2 | 192 | #define GMIDI_NUM_INTERFACES 2 |
193 | 193 | ||
194 | DECLARE_USB_AC_HEADER_DESCRIPTOR(1); | 194 | DECLARE_UAC_AC_HEADER_DESCRIPTOR(1); |
195 | DECLARE_USB_MIDI_OUT_JACK_DESCRIPTOR(1); | 195 | DECLARE_USB_MIDI_OUT_JACK_DESCRIPTOR(1); |
196 | DECLARE_USB_MS_ENDPOINT_DESCRIPTOR(1); | 196 | DECLARE_USB_MS_ENDPOINT_DESCRIPTOR(1); |
197 | 197 | ||
@@ -237,12 +237,12 @@ static const struct usb_interface_descriptor ac_interface_desc = { | |||
237 | }; | 237 | }; |
238 | 238 | ||
239 | /* B.3.2 Class-Specific AC Interface Descriptor */ | 239 | /* B.3.2 Class-Specific AC Interface Descriptor */ |
240 | static const struct usb_ac_header_descriptor_1 ac_header_desc = { | 240 | static const struct uac_ac_header_descriptor_1 ac_header_desc = { |
241 | .bLength = USB_DT_AC_HEADER_SIZE(1), | 241 | .bLength = UAC_DT_AC_HEADER_SIZE(1), |
242 | .bDescriptorType = USB_DT_CS_INTERFACE, | 242 | .bDescriptorType = USB_DT_CS_INTERFACE, |
243 | .bDescriptorSubtype = USB_MS_HEADER, | 243 | .bDescriptorSubtype = USB_MS_HEADER, |
244 | .bcdADC = cpu_to_le16(0x0100), | 244 | .bcdADC = cpu_to_le16(0x0100), |
245 | .wTotalLength = cpu_to_le16(USB_DT_AC_HEADER_SIZE(1)), | 245 | .wTotalLength = cpu_to_le16(UAC_DT_AC_HEADER_SIZE(1)), |
246 | .bInCollection = 1, | 246 | .bInCollection = 1, |
247 | .baInterfaceNr = { | 247 | .baInterfaceNr = { |
248 | [0] = GMIDI_MS_INTERFACE, | 248 | [0] = GMIDI_MS_INTERFACE, |