thunderbolt: Introduce tb_port_next_cap()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 29 Jun 2020 17:15:17 +0000 (20:15 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 3 Sep 2020 09:21:07 +0000 (12:21 +0300)
commit3c8b228d4371d0556d3d333d63df90172c2c7355
tree78c315f5a40434996ea53ffd9690828d7995ab4c
parent8f8310115e339c5e3d03b6366998d0a11a5e44bd
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>
drivers/thunderbolt/cap.c
drivers/thunderbolt/tb.h