]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
usb: gadget: f_midi: use flexible array member for gmidi_in_port elements
authorMichal Nazarewicz <mina86@mina86.com>
Tue, 5 Jan 2016 13:43:42 +0000 (14:43 +0100)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:34 +0000 (15:14 +0200)
commitbf0028f8cb44a65ddc57b805ef43bd37dfa8a6ce
tree08b6f664d33b203806bb6bc9627a75782c79ed4a
parent06cd928b0cfc79e9e17e0d36e39329e20238b185
usb: gadget: f_midi: use flexible array member for gmidi_in_port elements

Reduce number of allocations, simplify memory management and reduce
memory usage by stacking the gmidi_in_port elements at the end of the
f_midi structure using a flexible array.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/function/f_midi.c