diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-02-20 18:58:02 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 11:00:56 -0400 |
commit | 459e536b1ddfd217ec8a3437a3214968a98223c7 (patch) | |
tree | 89fa87d66c29f8688586218e96d60de8a7be631f /drivers/net/chelsio/my3126.c | |
parent | 4c247db114d95fb42528afe4c16db522dd050d7b (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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/chelsio/my3126.c b/drivers/net/chelsio/my3126.c index 87dde3e60046..040acd29995a 100644 --- a/drivers/net/chelsio/my3126.c +++ b/drivers/net/chelsio/my3126.c | |||
@@ -166,7 +166,7 @@ static struct cphy_ops my3126_ops = { | |||
166 | }; | 166 | }; |
167 | 167 | ||
168 | static struct cphy *my3126_phy_create(adapter_t *adapter, | 168 | static struct cphy *my3126_phy_create(adapter_t *adapter, |
169 | int phy_addr, struct mdio_ops *mdio_ops) | 169 | int phy_addr, const struct mdio_ops *mdio_ops) |
170 | { | 170 | { |
171 | struct cphy *cphy = kzalloc(sizeof (*cphy), GFP_KERNEL); | 171 | struct cphy *cphy = kzalloc(sizeof (*cphy), GFP_KERNEL); |
172 | 172 | ||
@@ -201,7 +201,7 @@ static int my3126_phy_reset(adapter_t * adapter) | |||
201 | return 0; | 201 | return 0; |
202 | } | 202 | } |
203 | 203 | ||
204 | struct gphy t1_my3126_ops = { | 204 | const struct gphy t1_my3126_ops = { |
205 | my3126_phy_create, | 205 | .create = my3126_phy_create, |
206 | my3126_phy_reset | 206 | .reset = my3126_phy_reset |
207 | }; | 207 | }; |