thunderbolt: Make is_gen4_link() available to the rest of the driver
authorGil Fine <gil.fine@linux.intel.com>
Mon, 31 Jul 2023 02:25:39 +0000 (05:25 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 20 Oct 2023 15:18:01 +0000 (18:18 +0300)
commitaa673d606078da36ebc379f041c794228ac08cb5
tree6fea362d1002c46345155a41d3f40d308c9f7705
parent4d24db0c801461adeefd7e0bdc98c79c60ccefb0
thunderbolt: Make is_gen4_link() available to the rest of the driver

Rework the function to return the link generation, update the name to
tb_port_get_link_generation(), and make available to the rest of the
driver. This is needed in the subsequent patches.

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