summaryrefslogtreecommitdiffstats
path: root/include/net/dsa.h
diff options
context:
space:
mode:
authorVivien Didelot2017-11-04 00:05:21 +0100
committerDavid S. Miller2017-11-05 14:31:38 +0100
commit49463b7f2da1a115404b02c5533bc2c2125833a3 (patch)
tree18bf73d0a6e86bac85a3e655b9630e386d50a796 /include/net/dsa.h
parentnet: dsa: make switch index unsigned (diff)
downloadkernel-qcow2-linux-49463b7f2da1a115404b02c5533bc2c2125833a3.tar.gz
kernel-qcow2-linux-49463b7f2da1a115404b02c5533bc2c2125833a3.tar.xz
kernel-qcow2-linux-49463b7f2da1a115404b02c5533bc2c2125833a3.zip
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>
Diffstat (limited to 'include/net/dsa.h')
-rw-r--r--include/net/dsa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/dsa.h b/include/net/dsa.h
index fa1c21ab8092..e54332968417 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -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;