summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>2017-11-07 00:11:43 +0300
committerDavid S. Miller <davem@davemloft.net>2017-11-09 03:26:49 +0300
commit24a9332a58b7f41a0d36c35a2c6897242bffdbc0 (patch)
treeab9f6a8e440bbdcaeccd26cf35aa98a2e0d537ad /include
parentb2d0f5d5dc53532e6f07bc546a476a55ebdfe0f3 (diff)
downloadlinux-24a9332a58b7f41a0d36c35a2c6897242bffdbc0.tar.xz
net: dsa: constify cpu_dp member of dsa_port
A DSA port has a dedicated CPU port assigned to it, stored in the cpu_dp member. It is not meant to be modified by a port, thus make it const. 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')
-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 e54332968417..2a8613b5a23d 100644
--- a/include/net/dsa.h
+++ b/include/net/dsa.h
@@ -190,7 +190,7 @@ struct dsa_port {
struct dsa_switch *ds;
unsigned int index;
const char *name;
- struct dsa_port *cpu_dp;
+ const struct dsa_port *cpu_dp;
struct device_node *dn;
unsigned int ageing_time;
u8 stp_state;