Skip to content

Commit 5ae3677

Browse files
committed
thunderbolt: Move forward declarations in one place
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 <[email protected]>
1 parent 4d99f98 commit 5ae3677

File tree

1 file changed

+1
-2
lines changed
  • drivers/thunderbolt

1 file changed

+1
-2
lines changed

drivers/thunderbolt/tb.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ struct tb_hotplug_event {
7676
bool unplug;
7777
};
7878

79+
static void tb_scan_port(struct tb_port *port);
7980
static void tb_handle_hotplug(struct work_struct *work);
8081

8182
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,
12381239
tb_switch_configure_link(sw);
12391240
}
12401241

1241-
static void tb_scan_port(struct tb_port *port);
1242-
12431242
/*
12441243
* tb_scan_switch() - scan for and initialize downstream switches
12451244
*/

0 commit comments

Comments
 (0)