summaryrefslogtreecommitdiff
path: root/drivers/net/chelsio/gmac.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-02-21 02:58:02 +0300
committerJeff Garzik <jeff@garzik.org>2007-04-28 19:00:56 +0400
commit459e536b1ddfd217ec8a3437a3214968a98223c7 (patch)
tree89fa87d66c29f8688586218e96d60de8a7be631f /drivers/net/chelsio/gmac.h
parent4c247db114d95fb42528afe4c16db522dd050d7b (diff)
downloadlinux-459e536b1ddfd217ec8a3437a3214968a98223c7.tar.xz
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/gmac.h')
-rw-r--r--drivers/net/chelsio/gmac.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/net/chelsio/gmac.h b/drivers/net/chelsio/gmac.h
index 006a2eb2d362..d42337457cf7 100644
--- a/drivers/net/chelsio/gmac.h
+++ b/drivers/net/chelsio/gmac.h
@@ -126,7 +126,7 @@ typedef struct _cmac_instance cmac_instance;
struct cmac {
struct cmac_statistics stats;
adapter_t *adapter;
- struct cmac_ops *ops;
+ const struct cmac_ops *ops;
cmac_instance *instance;
};
@@ -136,11 +136,7 @@ struct gmac {
int (*reset)(adapter_t *);
};
-extern struct gmac t1_pm3393_ops;
-extern struct gmac t1_chelsio_mac_ops;
-extern struct gmac t1_vsc7321_ops;
-extern struct gmac t1_vsc7326_ops;
-extern struct gmac t1_ixf1010_ops;
-extern struct gmac t1_dummy_mac_ops;
+extern const struct gmac t1_pm3393_ops;
+extern const struct gmac t1_vsc7326_ops;
#endif /* _CXGB_GMAC_H_ */