summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/tmu.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2022-10-07 17:12:02 +0200
committerMika Westerberg <mika.westerberg@linux.intel.com>2023-06-09 11:07:23 +0200
commit12a14f2fca32332d065b64f6f654fa332c90475e (patch)
treebe65f248340f6a6fbfcc7097a5b22cf30c1238a6 /drivers/thunderbolt/tmu.c
parentthunderbolt: Check valid TMU configuration in tb_switch_tmu_configure() (diff)
downloadlinux-12a14f2fca32332d065b64f6f654fa332c90475e.tar.xz
linux-12a14f2fca32332d065b64f6f654fa332c90475e.zip
thunderbolt: Move CLx support functions into clx.c
There really don't belong to switch.c so move them into their own file. As we do this rename the functions to match the conventions used elsewhere in the driver. No functional changes. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/tmu.c')
-rw-r--r--drivers/thunderbolt/tmu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/thunderbolt/tmu.c b/drivers/thunderbolt/tmu.c
index be310d97ea7b..6988704c845c 100644
--- a/drivers/thunderbolt/tmu.c
+++ b/drivers/thunderbolt/tmu.c
@@ -388,7 +388,7 @@ int tb_switch_tmu_disable(struct tb_switch *sw)
* on these devices e.g. Alpine Ridge and earlier, the TMU mode
* HiFi bi-directional is enabled by default and we don't change it.
*/
- if (!tb_switch_is_clx_supported(sw))
+ if (!tb_switch_clx_is_supported(sw))
return 0;
/* Already disabled? */
@@ -653,7 +653,7 @@ int tb_switch_tmu_enable(struct tb_switch *sw)
* these devices e.g. Alpine Ridge and earlier, the TMU mode HiFi
* bi-directional is enabled by default.
*/
- if (!tb_switch_is_clx_supported(sw))
+ if (!tb_switch_clx_is_supported(sw))
return 0;
if (tb_switch_tmu_is_enabled(sw))
@@ -664,7 +664,7 @@ int tb_switch_tmu_enable(struct tb_switch *sw)
* Titan Ridge supports CL0s and CL1 only. CL0s and CL1 are
* enabled and supported together.
*/
- if (!tb_switch_is_clx_enabled(sw, TB_CL1))
+ if (!tb_switch_clx_is_enabled(sw, TB_CL1))
return -EOPNOTSUPP;
ret = tb_switch_tmu_disable_objections(sw);