aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2500pci.c
diff options
context:
space:
mode:
authorIvo van Doorn <IvDoorn@gmail.com>2008-01-24 03:48:03 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:03:03 -0500
commit4bd7c452a468af30bb3c4d9c3adcdaf3f3c6048c (patch)
tree87df588e208a8118c6aba89c85bddef2d0ed79c9 /drivers/net/wireless/rt2x00/rt2500pci.c
parent2676c94d4e5994f92e57fa3ea680f1d652049d03 (diff)
rt2x00: Remove data_desc structure
Coverty indicated that data_desc with a single element array is bad coding style. This removes the structure and forces everybody to use __le32. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2500pci.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2500pci.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2500pci.c b/drivers/net/wireless/rt2x00/rt2500pci.c
index 3d02c0d297e8..1dea9d800d47 100644
--- a/drivers/net/wireless/rt2x00/rt2500pci.c
+++ b/drivers/net/wireless/rt2x00/rt2500pci.c
@@ -691,7 +691,7 @@ dynamic_cca_tune:
691static void rt2500pci_init_rxring(struct rt2x00_dev *rt2x00dev) 691static void rt2500pci_init_rxring(struct rt2x00_dev *rt2x00dev)
692{ 692{
693 struct data_ring *ring = rt2x00dev->rx; 693 struct data_ring *ring = rt2x00dev->rx;
694 struct data_desc *rxd; 694 __le32 *rxd;
695 unsigned int i; 695 unsigned int i;
696 u32 word; 696 u32 word;
697 697
@@ -716,7 +716,7 @@ static void rt2500pci_init_rxring(struct rt2x00_dev *rt2x00dev)
716static void rt2500pci_init_txring(struct rt2x00_dev *rt2x00dev, const int queue) 716static void rt2500pci_init_txring(struct rt2x00_dev *rt2x00dev, const int queue)
717{ 717{
718 struct data_ring *ring = rt2x00lib_get_ring(rt2x00dev, queue); 718 struct data_ring *ring = rt2x00lib_get_ring(rt2x00dev, queue);
719 struct data_desc *txd; 719 __le32 *txd;
720 unsigned int i; 720 unsigned int i;
721 u32 word; 721 u32 word;
722 722
@@ -1167,7 +1167,7 @@ static int rt2500pci_set_device_state(struct rt2x00_dev *rt2x00dev,
1167 * TX descriptor initialization 1167 * TX descriptor initialization
1168 */ 1168 */
1169static void rt2500pci_write_tx_desc(struct rt2x00_dev *rt2x00dev, 1169static void rt2500pci_write_tx_desc(struct rt2x00_dev *rt2x00dev,
1170 struct data_desc *txd, 1170 __le32 *txd,
1171 struct txdata_entry_desc *desc, 1171 struct txdata_entry_desc *desc,
1172 struct ieee80211_hdr *ieee80211hdr, 1172 struct ieee80211_hdr *ieee80211hdr,
1173 unsigned int length, 1173 unsigned int length,
@@ -1251,7 +1251,7 @@ static void rt2500pci_kick_tx_queue(struct rt2x00_dev *rt2x00dev,
1251static void rt2500pci_fill_rxdone(struct data_entry *entry, 1251static void rt2500pci_fill_rxdone(struct data_entry *entry,
1252 struct rxdata_entry_desc *desc) 1252 struct rxdata_entry_desc *desc)
1253{ 1253{
1254 struct data_desc *rxd = entry->priv; 1254 __le32 *rxd = entry->priv;
1255 u32 word0; 1255 u32 word0;
1256 u32 word2; 1256 u32 word2;
1257 1257
@@ -1278,7 +1278,7 @@ static void rt2500pci_txdone(struct rt2x00_dev *rt2x00dev, const int queue)
1278{ 1278{
1279 struct data_ring *ring = rt2x00lib_get_ring(rt2x00dev, queue); 1279 struct data_ring *ring = rt2x00lib_get_ring(rt2x00dev, queue);
1280 struct data_entry *entry; 1280 struct data_entry *entry;
1281 struct data_desc *txd; 1281 __le32 *txd;
1282 u32 word; 1282 u32 word;
1283 int tx_status; 1283 int tx_status;
1284 int retry; 1284 int retry;