diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-01-26 13:45:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-26 15:43:53 -0500 |
commit | 3512a8e95e6acb51d4cd04480689ac484ed538c2 (patch) | |
tree | d7e1bbaad146de68dbd5e60c4f39af5513b03b34 /net/dsa | |
parent | 293784a8f856e854b4742be4aacf435062d91e9c (diff) |
net: dsa: Suffix function manipulating device_node with _dn
Make it clear that these functions take a device_node structure pointer
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/dsa2.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/net/dsa/dsa2.c b/net/dsa/dsa2.c index 56c43ca7c049..4c11619a818b 100644 --- a/net/dsa/dsa2.c +++ b/net/dsa/dsa2.c | |||
@@ -93,8 +93,8 @@ static bool dsa_port_is_cpu(struct dsa_port *port) | |||
93 | return !!of_parse_phandle(port->dn, "ethernet", 0); | 93 | return !!of_parse_phandle(port->dn, "ethernet", 0); |
94 | } | 94 | } |
95 | 95 | ||
96 | static bool dsa_ds_find_port(struct dsa_switch *ds, | 96 | static bool dsa_ds_find_port_dn(struct dsa_switch *ds, |
97 | struct device_node *port) | 97 | struct device_node *port) |
98 | { | 98 | { |
99 | u32 index; | 99 | u32 index; |
100 | 100 | ||
@@ -104,8 +104,8 @@ static bool dsa_ds_find_port(struct dsa_switch *ds, | |||
104 | return false; | 104 | return false; |
105 | } | 105 | } |
106 | 106 | ||
107 | static struct dsa_switch *dsa_dst_find_port(struct dsa_switch_tree *dst, | 107 | static struct dsa_switch *dsa_dst_find_port_dn(struct dsa_switch_tree *dst, |
108 | struct device_node *port) | 108 | struct device_node *port) |
109 | { | 109 | { |
110 | struct dsa_switch *ds; | 110 | struct dsa_switch *ds; |
111 | u32 index; | 111 | u32 index; |
@@ -115,7 +115,7 @@ static struct dsa_switch *dsa_dst_find_port(struct dsa_switch_tree *dst, | |||
115 | if (!ds) | 115 | if (!ds) |
116 | continue; | 116 | continue; |
117 | 117 | ||
118 | if (dsa_ds_find_port(ds, port)) | 118 | if (dsa_ds_find_port_dn(ds, port)) |
119 | return ds; | 119 | return ds; |
120 | } | 120 | } |
121 | 121 | ||
@@ -136,7 +136,7 @@ static int dsa_port_complete(struct dsa_switch_tree *dst, | |||
136 | if (!link) | 136 | if (!link) |
137 | break; | 137 | break; |
138 | 138 | ||
139 | dst_ds = dsa_dst_find_port(dst, link); | 139 | dst_ds = dsa_dst_find_port_dn(dst, link); |
140 | of_node_put(link); | 140 | of_node_put(link); |
141 | 141 | ||
142 | if (!dst_ds) | 142 | if (!dst_ds) |
@@ -545,7 +545,7 @@ static int dsa_parse_ports_dn(struct device_node *ports, struct dsa_switch *ds) | |||
545 | return 0; | 545 | return 0; |
546 | } | 546 | } |
547 | 547 | ||
548 | static int dsa_parse_member(struct device_node *np, u32 *tree, u32 *index) | 548 | static int dsa_parse_member_dn(struct device_node *np, u32 *tree, u32 *index) |
549 | { | 549 | { |
550 | int err; | 550 | int err; |
551 | 551 | ||
@@ -591,7 +591,7 @@ static int _dsa_register_switch(struct dsa_switch *ds, struct device *dev) | |||
591 | u32 tree, index; | 591 | u32 tree, index; |
592 | int i, err; | 592 | int i, err; |
593 | 593 | ||
594 | err = dsa_parse_member(np, &tree, &index); | 594 | err = dsa_parse_member_dn(np, &tree, &index); |
595 | if (err) | 595 | if (err) |
596 | return err; | 596 | return err; |
597 | 597 | ||