projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
firewire: a header cleanup
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
firewire
/
fw-topology.c
diff --git
a/drivers/firewire/fw-topology.c
b/drivers/firewire/fw-topology.c
index 39e5cd12aa526176a70013f958ca6506de9a487c..45e6f9bfe99caea57afd13cb4a6c7be4ba145c86 100644
(file)
--- 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