]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thunderbolt: Introduce tb_switch_depth()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 1 Oct 2024 17:31:06 +0000 (17:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:30:01 +0000 (16:30 +0200)
commit8f053095e13eb45b8e8fd1a244353e9845d303f4
tree512af61f4a569ef059e22fa31bbaaad46f90baea
parente07bc5858e3e6484e2a0e093e4029488953822e1
thunderbolt: Introduce tb_switch_depth()

[ Upstream commit c4ff14436952c3d0dd05769d76cf48e73a253b48 ]

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>
Signed-off-by: Qin Wan <qin.wan@hp.com>
Signed-off-by: Alexandru Gagniuc <alexandru.gagniuc@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/tb.c
drivers/thunderbolt/tb.h