thunderbolt: Introduce tb_switch_downstream_port()
authorGil Fine <gil.fine@intel.com>
Thu, 22 Sep 2022 22:30:38 +0000 (01:30 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 9 Jun 2023 09:07:22 +0000 (12:07 +0300)
commit7ce542219b6323764cb922722b677005404d9b60
tree13d0ddb08544c5a34a01cc0ba874756529938a5f
parentef65afa0740e28cb0951fa9012cb78765f883a4a
thunderbolt: Introduce tb_switch_downstream_port()

Introduce tb_switch_downstream_port() helper function that returns the
downstream port of a parent switch that is connected to the upstream
port of specified switch. From now on, we use it all across the driver
where applicable.

While there fix a whitespace in comment and rename 'downstream' to
'down' to be consistent with the rest of the driver.

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