浏览代码

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>
Stefan Richter 17 年之前
父节点
当前提交
e5f84f82bd
共有 2 个文件被更改,包括 4 次插入6 次删除
  1. 4 0
      drivers/firewire/fw-topology.c
  2. 0 6
      drivers/firewire/fw-topology.h

+ 4 - 0
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

+ 0 - 6
drivers/firewire/fw-topology.h

@@ -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)
 {