thunderbolt: Introduce tb_switch_next_cap()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 29 Jun 2020 17:21:07 +0000 (20:21 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 3 Sep 2020 09:21:07 +0000 (12:21 +0300)
commit6de057ef915f167dc6518910de3675ab061d2a50
treebb6e759ca6fd908e4d8aedbc7c08dcdab9ab6105
parent3c8b228d4371d0556d3d333d63df90172c2c7355
thunderbolt: Introduce tb_switch_next_cap()

This is similar to tb_port_next_cap() but instead allows walking
capability list of a switch (router). Convert tb_switch_find_cap() and
tb_switch_find_vse_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