]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: refactor TRB_RESET_DEV case into function
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 9 Sep 2013 10:29:51 +0000 (13:29 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 16 Oct 2013 19:24:29 +0000 (12:24 -0700)
commitd7ec3da0ac81ad15d49bf377dc69dd1538c3f42c
tree14abf9b233421038b8c0c1690094fb9428610f07
parent4ad37da35ea5f33db86f0f6e202bbf48d843a51c
xhci: refactor TRB_RESET_DEV case into function

The function that handles xHCI command completion is much too long and
there is need to be broken up into individual functions for each command
completion to improve code readablity.
This patch refactors the code in TRB_RESET_DEV switch case in
handle_cmd_completion() into a fuction named xhci_handle_cmd_reset_dev().

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-ring.c