aboutsummaryrefslogtreecommitdiff
path: root/drivers/thunderbolt/tb.h
diff options
context:
space:
mode:
authorGravatar Mika Westerberg <mika.westerberg@linux.intel.com> 2022-10-07 13:19:09 +0300
committerGravatar Mika Westerberg <mika.westerberg@linux.intel.com> 2023-06-09 12:07:22 +0300
commit826f55d50de95572661ab4508d6aa0649a60627b (patch)
tree37163f63f59452470204ba150ffea165c7bca683 /drivers/thunderbolt/tb.h
parentthunderbolt: Fix a couple of style issues in TMU code (diff)
downloadlinux-826f55d50de95572661ab4508d6aa0649a60627b.tar.gz
linux-826f55d50de95572661ab4508d6aa0649a60627b.tar.bz2
linux-826f55d50de95572661ab4508d6aa0649a60627b.zip
thunderbolt: Drop useless 'unidirectional' parameter from tb_switch_tmu_is_enabled()
There is no point passing it as we already have a field for that. While there clean up the kernel-doc of things that do not really belong to the API documentation (these can be figured out from the spec itself). No functional changes. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/tb.h')
-rw-r--r--drivers/thunderbolt/tb.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h
index 1e617c6e11ae..75dbe00d7cf6 100644
--- a/drivers/thunderbolt/tb.h
+++ b/drivers/thunderbolt/tb.h
@@ -995,16 +995,14 @@ void tb_switch_enable_tmu_1st_child(struct tb_switch *sw,
/**
* tb_switch_tmu_is_enabled() - Checks if the specified TMU mode is enabled
* @sw: Router whose TMU mode to check
- * @unidirectional: If uni-directional (bi-directional otherwise)
*
- * Return true if hardware TMU configuration matches the one passed in
- * as parameter. That is HiFi/Normal and either uni-directional or bi-directional.
+ * Return true if hardware TMU configuration matches the requested
+ * configuration.
*/
-static inline bool tb_switch_tmu_is_enabled(const struct tb_switch *sw,
- bool unidirectional)
+static inline bool tb_switch_tmu_is_enabled(const struct tb_switch *sw)
{
return sw->tmu.rate == sw->tmu.rate_request &&
- sw->tmu.unidirectional == unidirectional;
+ sw->tmu.unidirectional == sw->tmu.unidirectional_request;
}
static inline const char *tb_switch_clx_name(enum tb_clx clx)