diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2016-08-09 19:09:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-09 15:09:40 -0700 |
commit | 0dff88d39fd0b17a5e3ff03d0264b823cab1352c (patch) | |
tree | 03acddfd0ee6da7ca83737f907554a096b9ee162 /drivers/net/dsa/b53/b53_priv.h | |
parent | 631fee7d70e8eabb642b4bcc58f08bbe880c91aa (diff) |
net: dsa: b53: constify b53_io_ops structures
The b53_io_ops structures are never modified, so declare them as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/b53/b53_priv.h')
-rw-r--r-- | drivers/net/dsa/b53/b53_priv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/dsa/b53/b53_priv.h b/drivers/net/dsa/b53/b53_priv.h index 835a744f206e..d268493a5fec 100644 --- a/drivers/net/dsa/b53/b53_priv.h +++ b/drivers/net/dsa/b53/b53_priv.h @@ -182,7 +182,8 @@ static inline int is_cpu_port(struct b53_device *dev, int port) return dev->cpu_port; } -struct b53_device *b53_switch_alloc(struct device *base, struct b53_io_ops *ops, +struct b53_device *b53_switch_alloc(struct device *base, + const struct b53_io_ops *ops, void *priv); int b53_switch_detect(struct b53_device *dev); |