diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-10-17 03:42:16 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-10-18 14:06:58 -0400 |
commit | 45c67550ad72be5c892d7b001fc835aae18a7a62 (patch) | |
tree | 7a5ee4d2e231897764be2a03239741227a1d8f03 /drivers/net/wireless | |
parent | e5553f089a5604df2108f767392e67d4eedb330c (diff) |
rt2x00: rt2800pci: use rt2800mmio prefix for TX descriptor functions
The functions are used for devices with memory
mapped I/O and contain no PCI specific code at
all. Use rt2800mmio prefix instead of rt2800pci
in the function names to reflect that.
The patch contains no functional changes.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800pci.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index f8f2abbfbb65..ddc6a42ad7b9 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c | |||
@@ -629,13 +629,13 @@ static int rt2800pci_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
629 | /* | 629 | /* |
630 | * TX descriptor initialization | 630 | * TX descriptor initialization |
631 | */ | 631 | */ |
632 | static __le32 *rt2800pci_get_txwi(struct queue_entry *entry) | 632 | static __le32 *rt2800mmio_get_txwi(struct queue_entry *entry) |
633 | { | 633 | { |
634 | return (__le32 *) entry->skb->data; | 634 | return (__le32 *) entry->skb->data; |
635 | } | 635 | } |
636 | 636 | ||
637 | static void rt2800pci_write_tx_desc(struct queue_entry *entry, | 637 | static void rt2800mmio_write_tx_desc(struct queue_entry *entry, |
638 | struct txentry_desc *txdesc) | 638 | struct txentry_desc *txdesc) |
639 | { | 639 | { |
640 | struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb); | 640 | struct skb_frame_desc *skbdesc = get_skb_frame_desc(entry->skb); |
641 | struct queue_entry_priv_mmio *entry_priv = entry->priv_data; | 641 | struct queue_entry_priv_mmio *entry_priv = entry->priv_data; |
@@ -826,7 +826,7 @@ static bool rt2800pci_txdone_release_entries(struct queue_entry *entry, | |||
826 | { | 826 | { |
827 | if (test_bit(ENTRY_DATA_STATUS_SET, &entry->flags)) { | 827 | if (test_bit(ENTRY_DATA_STATUS_SET, &entry->flags)) { |
828 | rt2800_txdone_entry(entry, entry->status, | 828 | rt2800_txdone_entry(entry, entry->status, |
829 | rt2800pci_get_txwi(entry)); | 829 | rt2800mmio_get_txwi(entry)); |
830 | return false; | 830 | return false; |
831 | } | 831 | } |
832 | 832 | ||
@@ -1146,7 +1146,7 @@ static const struct rt2800_ops rt2800pci_rt2800_ops = { | |||
1146 | .hwcrypt_disabled = rt2800pci_hwcrypt_disabled, | 1146 | .hwcrypt_disabled = rt2800pci_hwcrypt_disabled, |
1147 | .drv_write_firmware = rt2800pci_write_firmware, | 1147 | .drv_write_firmware = rt2800pci_write_firmware, |
1148 | .drv_init_registers = rt2800pci_init_registers, | 1148 | .drv_init_registers = rt2800pci_init_registers, |
1149 | .drv_get_txwi = rt2800pci_get_txwi, | 1149 | .drv_get_txwi = rt2800mmio_get_txwi, |
1150 | }; | 1150 | }; |
1151 | 1151 | ||
1152 | static const struct rt2x00lib_ops rt2800pci_rt2x00_ops = { | 1152 | static const struct rt2x00lib_ops rt2800pci_rt2x00_ops = { |
@@ -1175,7 +1175,7 @@ static const struct rt2x00lib_ops rt2800pci_rt2x00_ops = { | |||
1175 | .kick_queue = rt2800pci_kick_queue, | 1175 | .kick_queue = rt2800pci_kick_queue, |
1176 | .stop_queue = rt2800pci_stop_queue, | 1176 | .stop_queue = rt2800pci_stop_queue, |
1177 | .flush_queue = rt2x00mmio_flush_queue, | 1177 | .flush_queue = rt2x00mmio_flush_queue, |
1178 | .write_tx_desc = rt2800pci_write_tx_desc, | 1178 | .write_tx_desc = rt2800mmio_write_tx_desc, |
1179 | .write_tx_data = rt2800_write_tx_data, | 1179 | .write_tx_data = rt2800_write_tx_data, |
1180 | .write_beacon = rt2800_write_beacon, | 1180 | .write_beacon = rt2800_write_beacon, |
1181 | .clear_beacon = rt2800_clear_beacon, | 1181 | .clear_beacon = rt2800_clear_beacon, |