thunderbolt: Introduce tb_port_next_cap()

This function is useful for walking port config space (adapter)
capability lists. Convert the tb_port_find_cap() to use this as well.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Mika Westerberg 2020-06-29 20:15:17 +03:00
commit 3c8b228d43
2 changed files with 32 additions and 4 deletions