summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/b53/b53_mdio.c
diff options
context:
space:
mode:
authorJulia Lawall <julia.lawall@lip6.fr>2016-08-09 19:09:45 +0200
committerDavid S. Miller <davem@davemloft.net>2016-08-09 15:09:40 -0700
commit0dff88d39fd0b17a5e3ff03d0264b823cab1352c (patch)
tree03acddfd0ee6da7ca83737f907554a096b9ee162 /drivers/net/dsa/b53/b53_mdio.c
parent631fee7d70e8eabb642b4bcc58f08bbe880c91aa (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_mdio.c')
-rw-r--r--drivers/net/dsa/b53/b53_mdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/b53/b53_mdio.c b/drivers/net/dsa/b53/b53_mdio.c
index aa87c3fffdac..477a16b5660a 100644
--- a/drivers/net/dsa/b53/b53_mdio.c
+++ b/drivers/net/dsa/b53/b53_mdio.c
@@ -267,7 +267,7 @@ static int b53_mdio_phy_write16(struct b53_device *dev, int addr, int reg,
return mdiobus_write_nested(bus, addr, reg, value);
}
-static struct b53_io_ops b53_mdio_ops = {
+static const struct b53_io_ops b53_mdio_ops = {
.read8 = b53_mdio_read8,
.read16 = b53_mdio_read16,
.read32 = b53_mdio_read32,