summaryrefslogtreecommitdiffstats
path: root/drivers/net/chelsio/my3126.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-02-20 15:58:02 -0800
committerJeff Garzik <jeff@garzik.org>2007-04-28 11:00:56 -0400
commit459e536b1ddfd217ec8a3437a3214968a98223c7 (patch)
tree89fa87d66c29f8688586218e96d60de8a7be631f /drivers/net/chelsio/my3126.c
parent4c247db114d95fb42528afe4c16db522dd050d7b (diff)
chelsio: use const for virtual functions
There are several uses of _ops structure in this driver that can be converted to const. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/chelsio/my3126.c')
-rw-r--r--drivers/net/chelsio/my3126.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/chelsio/my3126.c b/drivers/net/chelsio/my3126.c
index 87dde3e6004..040acd29995 100644
--- a/drivers/net/chelsio/my3126.c
+++ b/drivers/net/chelsio/my3126.c
@@ -166,7 +166,7 @@ static struct cphy_ops my3126_ops = {
};
static struct cphy *my3126_phy_create(adapter_t *adapter,
- int phy_addr, struct mdio_ops *mdio_ops)
+ int phy_addr, const struct mdio_ops *mdio_ops)
{
struct cphy *cphy = kzalloc(sizeof (*cphy), GFP_KERNEL);
@@ -201,7 +201,7 @@ static int my3126_phy_reset(adapter_t * adapter)
return 0;
}
-struct gphy t1_my3126_ops = {
- my3126_phy_create,
- my3126_phy_reset
+const struct gphy t1_my3126_ops = {
+ .create = my3126_phy_create,
+ .reset = my3126_phy_reset
};