aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2800pci.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-11-04 12:35:00 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-11-06 16:48:53 -0500
commitb0a1edabd31a18de3c6380022af0804592bded14 (patch)
treeab335eb7065f7461c49cb1651dca68f42350d5d1 /drivers/net/wireless/rt2x00/rt2800pci.c
parent7a345d3d2512769ca693d4844b215ae2cc267dce (diff)
rt2800pci: convert to use struct rt2800_ops methods
Add chipset registers access abstraction layer and prepare for later code unification. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Acked-by: Gertjan van Wingerde <gwingerde@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2800pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2800pci.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c
index 8f8f8d85f2cf..fde722caab94 100644
--- a/drivers/net/wireless/rt2x00/rt2800pci.c
+++ b/drivers/net/wireless/rt2x00/rt2800pci.c
@@ -2988,10 +2988,23 @@ static int rt2800pci_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
2988 return 0; 2988 return 0;
2989} 2989}
2990 2990
2991static const struct rt2800_ops rt2800pci_rt2800_ops = {
2992 .register_read = rt2x00pci_register_read,
2993 .register_write = rt2x00pci_register_write,
2994 .register_write_lock = rt2x00pci_register_write, /* same for PCI */
2995
2996 .register_multiread = rt2x00pci_register_multiread,
2997 .register_multiwrite = rt2x00pci_register_multiwrite,
2998
2999 .regbusy_read = rt2x00pci_regbusy_read,
3000};
3001
2991static int rt2800pci_probe_hw(struct rt2x00_dev *rt2x00dev) 3002static int rt2800pci_probe_hw(struct rt2x00_dev *rt2x00dev)
2992{ 3003{
2993 int retval; 3004 int retval;
2994 3005
3006 rt2x00dev->priv = (void *)&rt2800pci_rt2800_ops;
3007
2995 /* 3008 /*
2996 * Allocate eeprom data. 3009 * Allocate eeprom data.
2997 */ 3010 */