thunderbolt: Introduce tb_switch_depth()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 4 Sep 2023 06:09:34 +0000 (09:09 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 20 Oct 2023 15:18:01 +0000 (18:18 +0300)
commitc4ff14436952c3d0dd05769d76cf48e73a253b48
treea99548a8da42ac58a0d9ebb1db2c12face3ea334
parent956c3abe72fb6a651b8cf77c28462f7e5b6a48b1
thunderbolt: Introduce tb_switch_depth()

This is useful helper to find out the depth of a connected router.
Convert the existing users to call this helper instead of open-coding.

No functional changes.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/tb.c
drivers/thunderbolt/tb.h