]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drivers: net: emac: add const to mii_phy_ops structures
authorBhumika Goyal <bhumirks@gmail.com>
Thu, 8 Jun 2017 06:00:58 +0000 (11:30 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 19:32:48 +0000 (15:32 -0400)
commitd193d53c1c1818f53cae0176d1f6a1509d80f449
tree9c361ff7e7a8d7ecc95e8849b1efaf1a2cf91a9c
parent7cb6e01de3c4721de0f5411a6eae95a4f74cc5d7
drivers: net: emac: add const to mii_phy_ops structures

The object references of mii_phy_ops structures are only stored
in the ops field of a mii_phy_def structure. This ops field is of type
const. So, mii_phy_ops structures having similar properties can be
declared as const.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/emac/phy.c