commit | b433d0100562233b21beb13c0139feeff350bc68 | [log] [tgz] |
---|---|---|
author | Mika Westerberg <mika.westerberg@linux.intel.com> | Mon Sep 30 14:07:22 2019 +0300 |
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | Fri Nov 01 14:32:00 2019 +0300 |
tree | 33b53e3049b49122b716bb25981b6c118268e704 | |
parent | 826c6a1773084c737abf09dccc591f9a59b8b812 [diff] |
thunderbolt: Add helper macro to iterate over switch ports There are quite many places in the driver where we iterate over each port in the switch. To make it bit more convenient, add a macro that can be used to iterate over each port and convert existing call sites to use it. This is based on code by Lukas Wunner. No functional changes. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>