diff options
author | Florian Fainelli | 2017-01-08 23:52:08 +0100 |
---|---|---|
committer | David S. Miller | 2017-01-09 21:44:50 +0100 |
commit | a82f67afe8e297834bedafa529941d9d0808caf8 (patch) | |
tree | 4e47358cacf8e32212e27b6d78f4d184e2799982 /drivers/net/dsa/qca8k.c | |
parent | net: dsa: Encapsulate legacy switch drivers into dsa_switch_driver (diff) | |
download | kernel-qcow2-linux-a82f67afe8e297834bedafa529941d9d0808caf8.tar.gz kernel-qcow2-linux-a82f67afe8e297834bedafa529941d9d0808caf8.tar.xz kernel-qcow2-linux-a82f67afe8e297834bedafa529941d9d0808caf8.zip |
net: dsa: Make dsa_switch_ops const
Now that we have properly encapsulated and made drivers utilize exported
functions, we can switch dsa_switch_ops to be a annotated with const.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/qca8k.c')
-rw-r--r-- | drivers/net/dsa/qca8k.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/qca8k.c b/drivers/net/dsa/qca8k.c index b3df70d07ff6..54d270d59eb0 100644 --- a/drivers/net/dsa/qca8k.c +++ b/drivers/net/dsa/qca8k.c @@ -911,7 +911,7 @@ qca8k_get_tag_protocol(struct dsa_switch *ds) return DSA_TAG_PROTO_QCA; } -static struct dsa_switch_ops qca8k_switch_ops = { +static const struct dsa_switch_ops qca8k_switch_ops = { .get_tag_protocol = qca8k_get_tag_protocol, .setup = qca8k_setup, .get_strings = qca8k_get_strings, |