]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: refactor TRB_CONFIG_EP case into function
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 9 Sep 2013 10:29:55 +0000 (13:29 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 16 Oct 2013 19:24:33 +0000 (12:24 -0700)
commitbc2031257304182b9042263b029eaf82fba77e24
treeef4b9a6b1bac305c6794e31322fc8bce79b8fd49
parent77bd49ddee77a644eaf742c4f64abb65e8a80ba1
xhci: refactor TRB_CONFIG_EP 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_CONFIG_EP switch case, in
handle_cmd_completion(), into a fuction named xhci_handle_cmd_config_ep().

There were added two additional variables, 'add_flags' and 'drop_flags',
to reduce line length below 80 chars and improve code readability.

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