The cphy_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>
Signed-off-by: David S. Miller <davem@davemloft.net>
 
 /* Convenience initializer */
 static inline void cphy_init(struct cphy *phy, struct net_device *dev,
-                            int phy_addr, struct cphy_ops *phy_ops,
+                            int phy_addr, const struct cphy_ops *phy_ops,
                             const struct mdio_ops *mdio_ops)
 {
        struct adapter *adapter = netdev_priv(dev);
 
        kfree(cphy);
 }
 
-static struct cphy_ops mv88e1xxx_ops = {
+static const struct cphy_ops mv88e1xxx_ops = {
        .destroy              = mv88e1xxx_destroy,
        .reset                = mv88e1xxx_reset,
        .interrupt_enable     = mv88e1xxx_interrupt_enable,
 
        kfree(cphy);
 }
 
-static struct cphy_ops mv88x201x_ops = {
+static const struct cphy_ops mv88x201x_ops = {
        .destroy           = mv88x201x_destroy,
        .reset             = mv88x201x_reset,
        .interrupt_enable  = mv88x201x_interrupt_enable,
 
        kfree(cphy);
 }
 
-static struct cphy_ops my3126_ops = {
+static const struct cphy_ops my3126_ops = {
        .destroy                = my3126_destroy,
        .reset                  = my3126_reset,
        .interrupt_enable       = my3126_interrupt_enable,
 
        return 0;
 }
 
-static struct cphy_ops ael1002_ops = {
+static const struct cphy_ops ael1002_ops = {
        .reset = ael1002_reset,
        .intr_enable = ael1002_intr_noop,
        .intr_disable = ael1002_intr_noop,
        return t3_phy_reset(phy, MDIO_MMD_PMAPMD, wait);
 }
 
-static struct cphy_ops ael1006_ops = {
+static const struct cphy_ops ael1006_ops = {
        .reset = ael1006_reset,
        .intr_enable = t3_phy_lasi_intr_enable,
        .intr_disable = t3_phy_lasi_intr_disable,
        return ret ? ret : cphy_cause_link_change;
 }
 
-static struct cphy_ops ael2005_ops = {
+static const struct cphy_ops ael2005_ops = {
        .reset           = ael2005_reset,
        .intr_enable     = ael2005_intr_enable,
        .intr_disable    = ael2005_intr_disable,
        return ret ? ret : cphy_cause_link_change;
 }
 
-static struct cphy_ops ael2020_ops = {
+static const struct cphy_ops ael2020_ops = {
        .reset           = ael2020_reset,
        .intr_enable     = ael2020_intr_enable,
        .intr_disable    = ael2020_intr_disable,
        return 0;
 }
 
-static struct cphy_ops qt2045_ops = {
+static const struct cphy_ops qt2045_ops = {
        .reset = ael1006_reset,
        .intr_enable = t3_phy_lasi_intr_enable,
        .intr_disable = t3_phy_lasi_intr_disable,
        return 0;
 }
 
-static struct cphy_ops xaui_direct_ops = {
+static const struct cphy_ops xaui_direct_ops = {
        .reset = xaui_direct_reset,
        .intr_enable = ael1002_intr_noop,
        .intr_disable = ael1002_intr_noop,
 
        return 0;
 }
 
-static struct cphy_ops aq100x_ops = {
+static const struct cphy_ops aq100x_ops = {
        .reset             = aq100x_reset,
        .intr_enable       = aq100x_intr_enable,
        .intr_disable      = aq100x_intr_disable,
 
 
 /* Convenience initializer */
 static inline void cphy_init(struct cphy *phy, struct adapter *adapter,
-                            int phy_addr, struct cphy_ops *phy_ops,
+                            int phy_addr, const struct cphy_ops *phy_ops,
                             const struct mdio_ops *mdio_ops,
                              unsigned int caps, const char *desc)
 {
 
        return cphy_cause;
 }
 
-static struct cphy_ops vsc8211_ops = {
+static const struct cphy_ops vsc8211_ops = {
        .reset = vsc8211_reset,
        .intr_enable = vsc8211_intr_enable,
        .intr_disable = vsc8211_intr_disable,
        .power_down = vsc8211_power_down,
 };
 
-static struct cphy_ops vsc8211_fiber_ops = {
+static const struct cphy_ops vsc8211_fiber_ops = {
        .reset = vsc8211_reset,
        .intr_enable = vsc8211_intr_enable,
        .intr_disable = vsc8211_intr_disable,