summaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2016-01-09 04:20:37 +0100
committerFelipe Balbi <balbi@kernel.org>2016-03-04 15:14:34 +0200
commit4111d4943a369136b3d9f7ddaff1359f187cf94a (patch)
treea35e14a861e63d48720a00df195a68aede8a21bb /include/linux/usb
parent413489c8337bf86b7787248484b1e845111809be (diff)
downloadop-kernel-dev-4111d4943a369136b3d9f7ddaff1359f187cf94a.zip
op-kernel-dev-4111d4943a369136b3d9f7ddaff1359f187cf94a.tar.gz
usb: gadget: f_midi: stash substream in gmidi_in_port structure
For every in_substream, there must be a corresponding gmidi_in_port structure so it is perfectly viable and some might argue sensible to stash pointer to the input substream in the gmidi_in_port structure. This has an added benefit that if in_ports < MAX_PORTS, the whole f_midi structure takes up less space because only in_ports number of pointers for in_substream are allocated instead of MAX_PORTS lots of them. Signed-off-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to 'include/linux/usb')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud