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/audio.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/audio.c')
-rw-r--r-- | drivers/usb/gadget/audio.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/usb/gadget/audio.c b/drivers/usb/gadget/audio.c index 9f80f4e970bd..a3a0f4a27ef0 100644 --- a/drivers/usb/gadget/audio.c +++ b/drivers/usb/gadget/audio.c | |||
@@ -106,20 +106,20 @@ static int audio_set_endpoint_req(struct usb_configuration *c, | |||
106 | ctrl->bRequest, w_value, len, ep); | 106 | ctrl->bRequest, w_value, len, ep); |
107 | 107 | ||
108 | switch (ctrl->bRequest) { | 108 | switch (ctrl->bRequest) { |
109 | case SET_CUR: | 109 | case UAC_SET_CUR: |
110 | value = 0; | 110 | value = 0; |
111 | break; | 111 | break; |
112 | 112 | ||
113 | case SET_MIN: | 113 | case UAC_SET_MIN: |
114 | break; | 114 | break; |
115 | 115 | ||
116 | case SET_MAX: | 116 | case UAC_SET_MAX: |
117 | break; | 117 | break; |
118 | 118 | ||
119 | case SET_RES: | 119 | case UAC_SET_RES: |
120 | break; | 120 | break; |
121 | 121 | ||
122 | case SET_MEM: | 122 | case UAC_SET_MEM: |
123 | break; | 123 | break; |
124 | 124 | ||
125 | default: | 125 | default: |
@@ -142,13 +142,13 @@ static int audio_get_endpoint_req(struct usb_configuration *c, | |||
142 | ctrl->bRequest, w_value, len, ep); | 142 | ctrl->bRequest, w_value, len, ep); |
143 | 143 | ||
144 | switch (ctrl->bRequest) { | 144 | switch (ctrl->bRequest) { |
145 | case GET_CUR: | 145 | case UAC_GET_CUR: |
146 | case GET_MIN: | 146 | case UAC_GET_MIN: |
147 | case GET_MAX: | 147 | case UAC_GET_MAX: |
148 | case GET_RES: | 148 | case UAC_GET_RES: |
149 | value = 3; | 149 | value = 3; |
150 | break; | 150 | break; |
151 | case GET_MEM: | 151 | case UAC_GET_MEM: |
152 | break; | 152 | break; |
153 | default: | 153 | default: |
154 | break; | 154 | break; |
@@ -171,11 +171,11 @@ audio_setup(struct usb_configuration *c, const struct usb_ctrlrequest *ctrl) | |||
171 | * Audio class messages; interface activation uses set_alt(). | 171 | * Audio class messages; interface activation uses set_alt(). |
172 | */ | 172 | */ |
173 | switch (ctrl->bRequestType) { | 173 | switch (ctrl->bRequestType) { |
174 | case USB_AUDIO_SET_ENDPOINT: | 174 | case USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_ENDPOINT: |
175 | value = audio_set_endpoint_req(c, ctrl); | 175 | value = audio_set_endpoint_req(c, ctrl); |
176 | break; | 176 | break; |
177 | 177 | ||
178 | case USB_AUDIO_GET_ENDPOINT: | 178 | case USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_ENDPOINT: |
179 | value = audio_get_endpoint_req(c, ctrl); | 179 | value = audio_get_endpoint_req(c, ctrl); |
180 | break; | 180 | break; |
181 | 181 | ||