thunderbolt: Make tb_find_port() available to other files
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 17 Dec 2019 12:33:37 +0000 (15:33 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2019 14:34:23 +0000 (15:34 +0100)
commit386e5e29d81cd088a1111277a18f13d571a6cea5
treea296f9a3d892d9dcff2d9f50e3e09a13cc1f3e5d
parent10e5e6c2496354f0afec82dba459339c421badbf
thunderbolt: Make tb_find_port() available to other files

We will be needing this when adding initial USB4 support so make it
available to other files in the driver as well. We also rename it to
tb_switch_find_port() to follow conventions used in switch.c.

No functional changes.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20191217123345.31850-2-mika.westerberg@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.c
drivers/thunderbolt/tb.h