]> git.baikalelectronics.ru Git - kernel.git/commit
usb: xhci: merge xhci_queue_bulk_tx and queue_bulk_sg_tx functions
authorAlexandr Ivanov <alexandr.sky@gmail.com>
Fri, 22 Apr 2016 10:17:09 +0000 (13:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Apr 2016 23:08:02 +0000 (16:08 -0700)
commit8c208f615059026031ab61e286d0337f9f532892
treeba156a049060f81a32cc6546e5d589ddd8472756
parent97dac7a6145130d4b07ff01b082b6af2061db6e0
usb: xhci: merge xhci_queue_bulk_tx and queue_bulk_sg_tx functions

In drivers/usb/host/xhci-ring.c there are two functions
(xhci_queue_bulk_tx and queue_bulk_sg_tx) that are very similar,
so a lot of code duplication.
This patch merges these functions into to one xhci_queue_bulk_tx.
Also counting the needed TRBs is merged and refactored.

Signed-off-by: Alexandr Ivanov <alexandr.sky@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c
drivers/usb/host/xhci.h