]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thunderbolt: Use weight constants in tb_usb3_consumed_bandwidth()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 1 Oct 2024 17:31:01 +0000 (17:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:30:00 +0000 (16:30 +0200)
commit22081f72076449ca7ef3e802cc2c498206817f50
treeff6ee0660d68a68ed7c73ff449f909e0a7609676
parentc014f37411d531c63ded4afb4e350ed82ac78be7
thunderbolt: Use weight constants in tb_usb3_consumed_bandwidth()

[ Upstream commit 4d24db0c801461adeefd7e0bdc98c79c60ccefb0 ]

Instead of magic numbers use the constants we introduced in the previous
commit to make the code more readable. No functional changes.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Qin Wan <qin.wan@hp.com>
Signed-off-by: Alexandru Gagniuc <alexandru.gagniuc@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/tunnel.c