Skip to content

Commit

Permalink
thunderbolt: Move forward declarations in one place
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mika Westerberg committed Jan 3, 2025
1 parent 4d99f98 commit 5ae3677
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/thunderbolt/tb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit 5ae3677

Please sign in to comment.