]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
thunderbolt: Move forward declarations in one place
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 26 Aug 2024 11:50:22 +0000 (14:50 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 3 Jan 2025 09:50:08 +0000 (11:50 +0200)
Sometimes we need to have these but move them into one place so that the
code is bit more understanable.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/tb.c

index 60454f9b9475604e01da9f30ea3ae14a565a77c9..79ebf70f42e5557767508a90364c46e84844ee68 100644 (file)
@@ -76,6 +76,7 @@ struct tb_hotplug_event {
        bool unplug;
 };
 
+static void tb_scan_port(struct tb_port *port);
 static void tb_handle_hotplug(struct work_struct *work);
 
 static void tb_queue_hotplug(struct tb *tb, u64 route, u8 port, bool unplug)
@@ -1238,8 +1239,6 @@ static void tb_configure_link(struct tb_port *down, struct tb_port *up,
        tb_switch_configure_link(sw);
 }
 
-static void tb_scan_port(struct tb_port *port);
-
 /*
  * tb_scan_switch() - scan for and initialize downstream switches
  */