aboutsummaryrefslogtreecommitdiff
path: root/drivers/thunderbolt/tunnel.c
diff options
context:
space:
mode:
authorGravatar Mika Westerberg <mika.westerberg@linux.intel.com> 2023-01-18 14:44:10 +0200
committerGravatar Mika Westerberg <mika.westerberg@linux.intel.com> 2023-01-27 08:25:59 +0200
commit06cbcbfaa6510eed406e3b6d5d071386b9830689 (patch)
tree6f80f08cb063f7c34d6c54d020311093cf8d8fe3 /drivers/thunderbolt/tunnel.c
parentthunderbolt: Handle bandwidth allocation mode enablement notification (diff)
downloadlinux-06cbcbfaa6510eed406e3b6d5d071386b9830689.tar.gz
linux-06cbcbfaa6510eed406e3b6d5d071386b9830689.tar.bz2
linux-06cbcbfaa6510eed406e3b6d5d071386b9830689.zip
thunderbolt: Add missing kernel-doc comment to tb_tunnel_maximum_bandwidth()
These were missing from the original commit so add them now. No functional changes. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/tunnel.c')
-rw-r--r--drivers/thunderbolt/tunnel.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/thunderbolt/tunnel.c b/drivers/thunderbolt/tunnel.c
index e87d378ca2cd..554c44d4fab0 100644
--- a/drivers/thunderbolt/tunnel.c
+++ b/drivers/thunderbolt/tunnel.c
@@ -2081,6 +2081,16 @@ static bool tb_tunnel_is_active(const struct tb_tunnel *tunnel)
return true;
}
+/**
+ * tb_tunnel_maximum_bandwidth() - Return maximum possible bandwidth
+ * @tunnel: Tunnel to check
+ * @max_up: Maximum upstream bandwidth in Mb/s
+ * @max_down: Maximum downstream bandwidth in Mb/s
+ *
+ * Returns maximum possible bandwidth this tunnel can go if not limited
+ * by other bandwidth clients. If the tunnel does not support this
+ * returns %-EOPNOTSUPP.
+ */
int tb_tunnel_maximum_bandwidth(struct tb_tunnel *tunnel, int *max_up,
int *max_down)
{