mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: dsa: make tree index unsigned
Similarly to a DSA switch and port, rename the tree index from "tree" to "index" and make it an unsigned int because it isn't supposed to be less than 0. u32 is an OF specific data used to retrieve the value and has no need to be propagated up to the tree index. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
99feaafcdb
commit
49463b7f2d
3 changed files with 9 additions and 9 deletions
|
@ -116,7 +116,7 @@ struct dsa_switch_tree {
|
|||
struct raw_notifier_head nh;
|
||||
|
||||
/* Tree identifier */
|
||||
u32 tree;
|
||||
unsigned int index;
|
||||
|
||||
/* Number of switches attached to this tree */
|
||||
struct kref refcount;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue