thunderbolt: Introduce tb_port_path_direction_downstream()
authorGil Fine <gil.fine@linux.intel.com>
Thu, 10 Aug 2023 19:37:14 +0000 (22:37 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 20 Oct 2023 15:18:01 +0000 (18:18 +0300)
commit2bfeca73e94567c1a117ca45d2e8a25d63e5bd2c
tree07815aa037a7e03ad44c022b7dfddc3fb7f6b5ef
parentce91d793ab8bc55804cdac2536bc33c249e75196
thunderbolt: Introduce tb_port_path_direction_downstream()

Introduce tb_port_path_direction_downstream() to check if path from
source adapter to destination adapter is directed towards downstream.
Convert existing users to call this helper instead of open-coding.

No functional changes.

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