xhci: add helper to allocate command with input context
authorMathias Nyman <mathias.nyman@linux.intel.com>
Fri, 8 Dec 2017 15:59:07 +0000 (17:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Dec 2017 16:43:52 +0000 (17:43 +0100)
commit14d49b7a0bfe76ef694a61e0c7b5f091ea780b91
treeba2c6b51c2edf9fe96a533128545d4649b1bff0b
parent5fd29937dec4b64aa91a3207742cd8c720cd0595
xhci: add helper to allocate command with input context

Add a xhci_alloc_command_with_ctx() helper to get rid of
one of the boolean parameters telling if a context should
be allocated with the command.

No functional changes, improves core readability

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