OSDN Git Service

thunderbolt: Introduce tb_switch_is_icm()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 25 Jun 2019 12:10:01 +0000 (15:10 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 1 Nov 2019 11:31:59 +0000 (14:31 +0300)
commitf07a360813f6c551380dca8817d8eb5e7ab40a21
tree585e2ecadbb618d9473dd3bae5b8cc0620496f51
parent1c9c5bc525b592e4b26cb5182d813e4b84bafa6e
thunderbolt: Introduce tb_switch_is_icm()

We currently differentiate between SW CM (Software Connection Manager,
sometimes also called External Connection Manager) and ICM (Firmware
based Connection Manager, Internal Connection Manager) by looking
directly at the sw->config.enabled field which may be rather hard to
understand for the casual reader. For this reason introduce a wrapper
function with documentation that should make the intention more clear.

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