Skip to content

Commit 3512a8e

Browse files
ffainellidavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 293784a commit 3512a8e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

net/dsa/dsa2.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ static bool dsa_port_is_cpu(struct dsa_port *port)
9393
return !!of_parse_phandle(port->dn, "ethernet", 0);
9494
}
9595

96-
static bool dsa_ds_find_port(struct dsa_switch *ds,
97-
struct device_node *port)
96+
static bool dsa_ds_find_port_dn(struct dsa_switch *ds,
97+
struct device_node *port)
9898
{
9999
u32 index;
100100

@@ -104,8 +104,8 @@ static bool dsa_ds_find_port(struct dsa_switch *ds,
104104
return false;
105105
}
106106

107-
static struct dsa_switch *dsa_dst_find_port(struct dsa_switch_tree *dst,
108-
struct device_node *port)
107+
static struct dsa_switch *dsa_dst_find_port_dn(struct dsa_switch_tree *dst,
108+
struct device_node *port)
109109
{
110110
struct dsa_switch *ds;
111111
u32 index;
@@ -115,7 +115,7 @@ static struct dsa_switch *dsa_dst_find_port(struct dsa_switch_tree *dst,
115115
if (!ds)
116116
continue;
117117

118-
if (dsa_ds_find_port(ds, port))
118+
if (dsa_ds_find_port_dn(ds, port))
119119
return ds;
120120
}
121121

@@ -136,7 +136,7 @@ static int dsa_port_complete(struct dsa_switch_tree *dst,
136136
if (!link)
137137
break;
138138

139-
dst_ds = dsa_dst_find_port(dst, link);
139+
dst_ds = dsa_dst_find_port_dn(dst, link);
140140
of_node_put(link);
141141

142142
if (!dst_ds)
@@ -545,7 +545,7 @@ static int dsa_parse_ports_dn(struct device_node *ports, struct dsa_switch *ds)
545545
return 0;
546546
}
547547

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)
549549
{
550550
int err;
551551

@@ -591,7 +591,7 @@ static int _dsa_register_switch(struct dsa_switch *ds, struct device *dev)
591591
u32 tree, index;
592592
int i, err;
593593

594-
err = dsa_parse_member(np, &tree, &index);
594+
err = dsa_parse_member_dn(np, &tree, &index);
595595
if (err)
596596
return err;
597597

0 commit comments

Comments
 (0)