summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@gmail.com>2019-06-14 13:49:20 -0400
committerDavid S. Miller <davem@davemloft.net>2019-06-14 20:20:07 -0700
commit68b2d4a844e157c08773fcd8f412ba1a37bf45b8 (patch)
treeaff6b4ec74cb3c62df0f7eb80c49e1a35f1cfe2f /include/net
parent14aafbd822333684f6595fb492f05eb054354a72 (diff)
downloadlinux-68b2d4a844e157c08773fcd8f412ba1a37bf45b8.tar.bz2
net: dsa: make cpu_dp non const
A port may trigger operations on its dedicated CPU port, so using cpu_dp as const will raise warnings. Make cpu_dp non const. Signed-off-by: Vivien Didelot <vivien.didelot@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-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 82a2baa2dc48..1e8650fa8acc 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -181,7 +181,7 @@ struct dsa_port {
struct dsa_switch *ds;
unsigned int index;
const char *name;
- const struct dsa_port *cpu_dp;
+ struct dsa_port *cpu_dp;
const char *mac;
struct device_node *dn;
unsigned int ageing_time;