]> git.karo-electronics.de Git - linux-beck.git/commit
usb: chipidea: udc: refine isr_tr_complete_handler
authorPeter Chen <peter.chen@freescale.com>
Tue, 11 Mar 2014 05:47:37 +0000 (13:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Mar 2014 19:32:21 +0000 (12:32 -0700)
commitd7b00e310b3342a6c5b8f648283ea55665614b67
tree9d52d644515818826953e62b9437313fff8bc697
parent192c028b6ac972df25fd624f94a94d038fbdb66c
usb: chipidea: udc: refine isr_tr_complete_handler

Matthieu CASTET and Michael Grzeschik mentioned isr_tr_complete_handler
is a bit messy at below:
http://marc.info/?l=linux-usb&m=139047775001152&w=2

This commit creates a new function isr_setup_packet_handler to handle
setup packet, it makes isr_tr_complete_handler easy to read.

This is no functional change at this commit, tested with g_mass_storage
and g_ether.

Cc: Michael Grzeschik <mgr@pengutronix.de>
Cc: Matthieu CASTET <matthieu.castet@parrot.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/udc.c