[PATCH 2/2] drivers: net: emac: add const to mii_phy_ops structures

2017-06-08 Thread Bhumika Goyal
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 ---

[PATCH 2/2] drivers: net: emac: add const to mii_phy_ops structures

2017-06-08 Thread Bhumika Goyal
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 --- drivers/net/ethernet/ibm/emac/phy.c | 12