Skip to content

Commit 7f333ac

Browse files
committed
thunderbolt: Move tb_xdomain_parent() to tb.h
We are going to need this for lane margining support so make it available outside of xdomain.c. Signed-off-by: Mika Westerberg <[email protected]>
1 parent 32249fd commit 7f333ac

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

drivers/thunderbolt/tb.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,6 +1132,11 @@ void tb_xdomain_remove(struct tb_xdomain *xd);
11321132
struct tb_xdomain *tb_xdomain_find_by_link_depth(struct tb *tb, u8 link,
11331133
u8 depth);
11341134

1135+
static inline struct tb_switch *tb_xdomain_parent(struct tb_xdomain *xd)
1136+
{
1137+
return tb_to_switch(xd->dev.parent);
1138+
}
1139+
11351140
int tb_retimer_scan(struct tb_port *port, bool add);
11361141
void tb_retimer_remove_all(struct tb_port *port);
11371142

drivers/thunderbolt/xdomain.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,11 +1131,6 @@ static int populate_properties(struct tb_xdomain *xd,
11311131
return 0;
11321132
}
11331133

1134-
static inline struct tb_switch *tb_xdomain_parent(struct tb_xdomain *xd)
1135-
{
1136-
return tb_to_switch(xd->dev.parent);
1137-
}
1138-
11391134
static int tb_xdomain_update_link_attributes(struct tb_xdomain *xd)
11401135
{
11411136
bool change = false;

0 commit comments

Comments
 (0)