net: ethernet: freescale: fs_enet: make mdiobb_ops const
authorBhumika Goyal <bhumirks@gmail.com>
Tue, 22 Aug 2017 08:15:59 +0000 (13:45 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Aug 2017 21:22:06 +0000 (14:22 -0700)
Make this const as it is only stored in a const field of a
mdiobb_ctrl structure.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fs_enet/mii-bitbang.c

index 1f015edcca227205e6c0969628bc5fe88f4ebae5..c8e5d889bd81fb73c1289975ddf0d5686d236162 100644 (file)
@@ -100,7 +100,7 @@ static inline void mdc(struct mdiobb_ctrl *ctrl, int what)
        in_be32(bitbang->dat);
 }
 
-static struct mdiobb_ops bb_ops = {
+static const struct mdiobb_ops bb_ops = {
        .owner = THIS_MODULE,
        .set_mdc = mdc,
        .set_mdio_dir = mdio_dir,