firewire: a header cleanup
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 7 Oct 2007 00:10:11 +0000 (02:10 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 16 Oct 2007 22:00:09 +0000 (00:00 +0200)
fw_node() is not used (and not useful) outside fw-topology.c.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-topology.c
drivers/firewire/fw-topology.h

index 39e5cd1..45e6f9b 100644 (file)
@@ -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
index 1b56b4a..cedc1ec 100644 (file)
@@ -50,12 +50,6 @@ struct fw_node {
        struct fw_node *ports[0];
 };
 
-static inline struct fw_node *
-fw_node(struct list_head *l)
-{
-       return list_entry(l, struct fw_node, link);
-}
-
 static inline struct fw_node *
 fw_node_get(struct fw_node *node)
 {