diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-10-07 02:10:11 +0200 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-10-17 00:00:09 +0200 |
commit | e5f84f82bdc5f8a5ce3d33aa6a2cc727fc08bda6 (patch) | |
tree | f3b165f1971dd2d6ca3c3819656dc55d0dd7256d /drivers/firewire/fw-topology.c | |
parent | a64408b96b5f67c2778958a230b5cfa3408a4a81 (diff) | |
download | blackbird-op-linux-e5f84f82bdc5f8a5ce3d33aa6a2cc727fc08bda6.tar.gz blackbird-op-linux-e5f84f82bdc5f8a5ce3d33aa6a2cc727fc08bda6.zip |
firewire: a header cleanup
fw_node() is not used (and not useful) outside fw-topology.c.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-topology.c')
-rw-r--r-- | drivers/firewire/fw-topology.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/firewire/fw-topology.c b/drivers/firewire/fw-topology.c index 39e5cd12aa52..45e6f9bfe99c 100644 --- a/drivers/firewire/fw-topology.c +++ b/drivers/firewire/fw-topology.c @@ -152,6 +152,10 @@ static void update_hop_count(struct fw_node *node) node->max_hops = max(max_child_hops, depths[0] + depths[1] + 2); } +static inline struct fw_node *fw_node(struct list_head *l) +{ + return list_entry(l, struct fw_node, link); +} /** * build_tree - Build the tree representation of the topology |