]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: refactor TRB_ENABLE_SLOT case into function
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 9 Sep 2013 10:29:47 +0000 (13:29 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 16 Oct 2013 19:24:25 +0000 (12:24 -0700)
commit65ad8ebf6c645bc1f97f19b80a80a0f5f896ef71
treeef173810ae193489ed03531f214408c59ecf297b
parent81dd81d573c20dca203425c7d371bd8e780b422e
xhci: refactor TRB_ENABLE_SLOT 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_ENABLE_SLOT switch case in
handle_cmd_completion() into a fuction named xhci_handle_cmd_enable_slot().

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