Skip to content

Commit

Permalink
USB: gadget: midi: refactor the device code
Browse files Browse the repository at this point in the history
Make use of the newly added MIDI function in f_midi.c and strip down
the MIDI gadget code radically. Also use the generic framework function
to avoid code duplication and rename some symbols to bring them in sync
with other code in the gadget framework.

[ balbi@ti.com : fix Section mismatch warnings.
	rebased on top of usb_speed_string() patch to
	avoid conflicts. ]

Signed-off-by: Daniel Mack <zonque@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Daniel Mack authored and Felipe Balbi committed Oct 13, 2011
1 parent d5daf49 commit 2672eea
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 1,197 deletions.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/f_midi.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static const struct usb_ms_endpoint_descriptor_1 ms_in_desc = {
}
};

static struct usb_descriptor_header *midi_function[] = {
static struct usb_descriptor_header *midi_function[] __initdata = {
(struct usb_descriptor_header *)&ac_interface_desc,
(struct usb_descriptor_header *)&ac_header_desc,
(struct usb_descriptor_header *)&ms_interface_desc,
Expand Down
Loading

0 comments on commit 2672eea

Please sign in to comment.