diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-02-20 15:58:02 -0800 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 11:00:56 -0400 |
commit | 459e536b1ddfd217ec8a3437a3214968a98223c7 (patch) | |
tree | 89fa87d66c29f8688586218e96d60de8a7be631f /drivers/net/chelsio/pm3393.c | |
parent | 4c247db114d95fb42528afe4c16db522dd050d7b (diff) | |
download | kernel_samsung_smdk4412-459e536b1ddfd217ec8a3437a3214968a98223c7.zip kernel_samsung_smdk4412-459e536b1ddfd217ec8a3437a3214968a98223c7.tar.gz kernel_samsung_smdk4412-459e536b1ddfd217ec8a3437a3214968a98223c7.tar.bz2 |
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/pm3393.c')
-rw-r--r-- | drivers/net/chelsio/pm3393.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/chelsio/pm3393.c b/drivers/net/chelsio/pm3393.c index 69129ed..678778a 100644 --- a/drivers/net/chelsio/pm3393.c +++ b/drivers/net/chelsio/pm3393.c @@ -807,8 +807,8 @@ static int pm3393_mac_reset(adapter_t * adapter) return successful_reset ? 0 : 1; } -struct gmac t1_pm3393_ops = { - STATS_TICK_SECS, - pm3393_mac_create, - pm3393_mac_reset +const struct gmac t1_pm3393_ops = { + .stats_update_period = STATS_TICK_SECS, + .create = pm3393_mac_create, + .reset = pm3393_mac_reset, }; |