thunderbolt: Move usb4_switch_wait_for_bit() to switch.c
authorGil Fine <gil.fine@intel.com>
Fri, 17 Dec 2021 01:16:40 +0000 (03:16 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 22 Dec 2021 14:13:14 +0000 (17:13 +0300)
commit1639664fb74f30eaf82231fccbcf4e34a6e71f7f
tree94bc2074dcfc1a908275ac9322a69f49cb833267
parent8a90e4fa3b4d6a10c96b0a04abf57bb5a16a8f4e
thunderbolt: Move usb4_switch_wait_for_bit() to switch.c

Currently usb4_switch_wait_for_bit() used only in usb4.c Moving to
switch.c to call it from other files. Also change the prefix to "tb_"
to follow to the naming convention.

Signed-off-by: Gil Fine <gil.fine@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.h
drivers/thunderbolt/usb4.c