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>
This commit is contained in:

committed by
Jeff Garzik

parent
4c247db114
commit
459e536b1d
@@ -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,
|
||||
};
|
||||
|
Reference in New Issue
Block a user