summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci-pci.c
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2018-03-20 13:57:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-22 13:40:10 +0100
commitd0a0fa9d74b9ba3b24b43fd50c318c27dc34c06f (patch)
tree477447040c6549af9579f9f545064a34395ac049 /drivers/usb/host/xhci-pci.c
parentusb: typec: tcpm: Use new Type-C switch/mux and usb-role-switch functions (diff)
downloadlinux-d0a0fa9d74b9ba3b24b43fd50c318c27dc34c06f.tar.xz
linux-d0a0fa9d74b9ba3b24b43fd50c318c27dc34c06f.zip
xhci: Add option to get next extended capability in list by passing id = 0
Modify xhci_find_next_ext_cap(base, offset, id) to return the next capability offset if 0 is passed for id. Otherwise it will behave as previously and return the offset of the next capability with matching id capability id 0 is not used by xHCI (reserved) This is useful when we want to loop through all capabilities. Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-pci.c')
0 files changed, 0 insertions, 0 deletions