rt2x00: Rename driver write_tx_datadesc callback function.
authorGertjan van Wingerde <gwingerde@gmail.com>
Tue, 29 Jun 2010 19:42:23 +0000 (21:42 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 30 Jun 2010 19:00:50 +0000 (15:00 -0400)
Now that the {usb,pci} specific write_tx_data functions are no longer
present we can rename the write_tx_datadesc callback function back to
its old name.

Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2800pci.c
drivers/net/wireless/rt2x00/rt2x00.h
drivers/net/wireless/rt2x00/rt2x00queue.c

index 894a43a8909ed4696dcf9d08f2e10c7e6bc45124..7bec15fc0cfc3198e331555709ef4dd68bed6550 100644 (file)
@@ -645,8 +645,8 @@ static int rt2800pci_set_device_state(struct rt2x00_dev *rt2x00dev,
 /*
  * TX descriptor initialization
  */
-static void rt2800pci_write_tx_datadesc(struct queue_entry* entry,
-                                        struct txentry_desc *txdesc)
+static void rt2800pci_write_tx_data(struct queue_entry* entry,
+                                   struct txentry_desc *txdesc)
 {
        rt2800_write_txwi((__le32 *) entry->skb->data, txdesc);
 }
@@ -1044,7 +1044,7 @@ static const struct rt2x00lib_ops rt2800pci_rt2x00_ops = {
        .reset_tuner            = rt2800_reset_tuner,
        .link_tuner             = rt2800_link_tuner,
        .write_tx_desc          = rt2800pci_write_tx_desc,
-       .write_tx_datadesc      = rt2800pci_write_tx_datadesc,
+       .write_tx_data          = rt2800pci_write_tx_data,
        .write_beacon           = rt2800_write_beacon,
        .kick_tx_queue          = rt2800pci_kick_tx_queue,
        .kill_tx_queue          = rt2800pci_kill_tx_queue,
index e7acc6abfd891fe87df046003ad55d22dab0fc3e..788b0e452cc7a046315fddb49fbb66821ed23235 100644 (file)
@@ -550,10 +550,8 @@ struct rt2x00lib_ops {
        void (*write_tx_desc) (struct rt2x00_dev *rt2x00dev,
                               struct sk_buff *skb,
                               struct txentry_desc *txdesc);
-       int (*write_tx_data) (struct queue_entry *entry,
-                             struct txentry_desc *txdesc);
-       void (*write_tx_datadesc) (struct queue_entry *entry,
-                                  struct txentry_desc *txdesc);
+       void (*write_tx_data) (struct queue_entry *entry,
+                              struct txentry_desc *txdesc);
        void (*write_beacon) (struct queue_entry *entry,
                              struct txentry_desc *txdesc);
        int (*get_tx_data_len) (struct queue_entry *entry);
index b9cc253cf96273b7bbccab95b874b95ccfb7b57b..5097fe0f9f51aad29da46a42cb39c6ede182bbb7 100644 (file)
@@ -430,10 +430,10 @@ static int rt2x00queue_write_tx_data(struct queue_entry *entry,
        memset(entry->skb->data, 0, rt2x00dev->ops->extra_tx_headroom);
 
        /*
-        * Call the driver's write_tx_datadesc function, if it exists.
+        * Call the driver's write_tx_data function, if it exists.
         */
-       if (rt2x00dev->ops->lib->write_tx_datadesc)
-               rt2x00dev->ops->lib->write_tx_datadesc(entry, txdesc);
+       if (rt2x00dev->ops->lib->write_tx_data)
+               rt2x00dev->ops->lib->write_tx_data(entry, txdesc);
 
        /*
         * Map the skb to DMA.