usb: gadget: f_midi: refactor state machine
authorFelipe F. Tonello <eu@felipetonello.com>
Mon, 8 Aug 2016 20:30:09 +0000 (21:30 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 25 Aug 2016 09:13:15 +0000 (12:13 +0300)
commitf42ab18cc8aed6b5a3532c468f99285de9eabab5
tree35baafb3d7ea3cddcab976f717340b5d4a97fdf1
parent7ea9fde7605c3d224ba28cd17ffd8ac408453a96
usb: gadget: f_midi: refactor state machine

This refactor results in a cleaner state machine code and promotes
consistency, readability, and maintanability of this driver.

This refactor state machine was well tested and it is currently running in
production code and devices.

Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_midi.c