diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-01-22 13:17:37 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-03-09 16:02:40 -0500 |
commit | 95688e97cdf7453cde22eaa73cc2ab6b113c1853 (patch) | |
tree | 187d857b123ceef85af5feb650a8143c08ec592d /drivers/firewire/fw-topology.h | |
parent | 21ebcd1224d05c8673053e1e93ab9ec7ef3e0b84 (diff) |
firewire: cleanups
This patch contains the following cleanups:
- "extern inline" -> "static inline"
- fw-topology.c: make struct fw_node_create static
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-topology.h')
-rw-r--r-- | drivers/firewire/fw-topology.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/firewire/fw-topology.h b/drivers/firewire/fw-topology.h index 32ea7cdb9e11..a78c9516ed0f 100644 --- a/drivers/firewire/fw-topology.h +++ b/drivers/firewire/fw-topology.h | |||
@@ -57,13 +57,13 @@ struct fw_node { | |||
57 | struct fw_port ports[0]; | 57 | struct fw_port ports[0]; |
58 | }; | 58 | }; |
59 | 59 | ||
60 | extern inline struct fw_node * | 60 | static inline struct fw_node * |
61 | fw_node(struct list_head *l) | 61 | fw_node(struct list_head *l) |
62 | { | 62 | { |
63 | return list_entry (l, struct fw_node, link); | 63 | return list_entry (l, struct fw_node, link); |
64 | } | 64 | } |
65 | 65 | ||
66 | extern inline struct fw_node * | 66 | static inline struct fw_node * |
67 | fw_node_get(struct fw_node *node) | 67 | fw_node_get(struct fw_node *node) |
68 | { | 68 | { |
69 | atomic_inc(&node->ref_count); | 69 | atomic_inc(&node->ref_count); |
@@ -71,7 +71,7 @@ fw_node_get(struct fw_node *node) | |||
71 | return node; | 71 | return node; |
72 | } | 72 | } |
73 | 73 | ||
74 | extern inline void | 74 | static inline void |
75 | fw_node_put(struct fw_node *node) | 75 | fw_node_put(struct fw_node *node) |
76 | { | 76 | { |
77 | if (atomic_dec_and_test(&node->ref_count)) | 77 | if (atomic_dec_and_test(&node->ref_count)) |