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/subr.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/subr.c')
-rw-r--r-- | drivers/net/chelsio/subr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/chelsio/subr.c b/drivers/net/chelsio/subr.c index 56d1d15a8f96..7de9a611e1f7 100644 --- a/drivers/net/chelsio/subr.c +++ b/drivers/net/chelsio/subr.c | |||
@@ -321,7 +321,7 @@ static int mi1_mdio_write(adapter_t *adapter, int phy_addr, int mmd_addr, | |||
321 | } | 321 | } |
322 | 322 | ||
323 | #if defined(CONFIG_CHELSIO_T1_1G) || defined(CONFIG_CHELSIO_T1_COUGAR) | 323 | #if defined(CONFIG_CHELSIO_T1_1G) || defined(CONFIG_CHELSIO_T1_COUGAR) |
324 | static struct mdio_ops mi1_mdio_ops = { | 324 | static const struct mdio_ops mi1_mdio_ops = { |
325 | .init = mi1_mdio_init, | 325 | .init = mi1_mdio_init, |
326 | .read = mi1_mdio_read, | 326 | .read = mi1_mdio_read, |
327 | .write = mi1_mdio_write | 327 | .write = mi1_mdio_write |
@@ -377,7 +377,7 @@ static int mi1_mdio_ext_write(adapter_t *adapter, int phy_addr, int mmd_addr, | |||
377 | return 0; | 377 | return 0; |
378 | } | 378 | } |
379 | 379 | ||
380 | static struct mdio_ops mi1_mdio_ext_ops = { | 380 | static const struct mdio_ops mi1_mdio_ext_ops = { |
381 | .init = mi1_mdio_init, | 381 | .init = mi1_mdio_init, |
382 | .read = mi1_mdio_ext_read, | 382 | .read = mi1_mdio_ext_read, |
383 | .write = mi1_mdio_ext_write | 383 | .write = mi1_mdio_ext_write |