diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2010-06-29 15:42:23 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-30 15:00:50 -0400 |
commit | 76dd5ddf2372c1b2673a79bd077b4afe0bb2828d (patch) | |
tree | ca5e2dd35eb0e1638108090d56a156ba40c890fc /drivers/net/wireless/rt2x00 | |
parent | e513a0b6f1bf8e1b59b0e1382d4e7ef3d344d535 (diff) |
rt2x00: Rename driver write_tx_datadesc callback function.
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>
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800pci.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 6 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00queue.c | 6 |
3 files changed, 8 insertions, 10 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800pci.c b/drivers/net/wireless/rt2x00/rt2800pci.c index 894a43a8909e..7bec15fc0cfc 100644 --- a/drivers/net/wireless/rt2x00/rt2800pci.c +++ b/drivers/net/wireless/rt2x00/rt2800pci.c | |||
@@ -645,8 +645,8 @@ static int rt2800pci_set_device_state(struct rt2x00_dev *rt2x00dev, | |||
645 | /* | 645 | /* |
646 | * TX descriptor initialization | 646 | * TX descriptor initialization |
647 | */ | 647 | */ |
648 | static void rt2800pci_write_tx_datadesc(struct queue_entry* entry, | 648 | static void rt2800pci_write_tx_data(struct queue_entry* entry, |
649 | struct txentry_desc *txdesc) | 649 | struct txentry_desc *txdesc) |
650 | { | 650 | { |
651 | rt2800_write_txwi((__le32 *) entry->skb->data, txdesc); | 651 | rt2800_write_txwi((__le32 *) entry->skb->data, txdesc); |
652 | } | 652 | } |
@@ -1044,7 +1044,7 @@ static const struct rt2x00lib_ops rt2800pci_rt2x00_ops = { | |||
1044 | .reset_tuner = rt2800_reset_tuner, | 1044 | .reset_tuner = rt2800_reset_tuner, |
1045 | .link_tuner = rt2800_link_tuner, | 1045 | .link_tuner = rt2800_link_tuner, |
1046 | .write_tx_desc = rt2800pci_write_tx_desc, | 1046 | .write_tx_desc = rt2800pci_write_tx_desc, |
1047 | .write_tx_datadesc = rt2800pci_write_tx_datadesc, | 1047 | .write_tx_data = rt2800pci_write_tx_data, |
1048 | .write_beacon = rt2800_write_beacon, | 1048 | .write_beacon = rt2800_write_beacon, |
1049 | .kick_tx_queue = rt2800pci_kick_tx_queue, | 1049 | .kick_tx_queue = rt2800pci_kick_tx_queue, |
1050 | .kill_tx_queue = rt2800pci_kill_tx_queue, | 1050 | .kill_tx_queue = rt2800pci_kill_tx_queue, |
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index e7acc6abfd89..788b0e452cc7 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -550,10 +550,8 @@ struct rt2x00lib_ops { | |||
550 | void (*write_tx_desc) (struct rt2x00_dev *rt2x00dev, | 550 | void (*write_tx_desc) (struct rt2x00_dev *rt2x00dev, |
551 | struct sk_buff *skb, | 551 | struct sk_buff *skb, |
552 | struct txentry_desc *txdesc); | 552 | struct txentry_desc *txdesc); |
553 | int (*write_tx_data) (struct queue_entry *entry, | 553 | void (*write_tx_data) (struct queue_entry *entry, |
554 | struct txentry_desc *txdesc); | 554 | struct txentry_desc *txdesc); |
555 | void (*write_tx_datadesc) (struct queue_entry *entry, | ||
556 | struct txentry_desc *txdesc); | ||
557 | void (*write_beacon) (struct queue_entry *entry, | 555 | void (*write_beacon) (struct queue_entry *entry, |
558 | struct txentry_desc *txdesc); | 556 | struct txentry_desc *txdesc); |
559 | int (*get_tx_data_len) (struct queue_entry *entry); | 557 | int (*get_tx_data_len) (struct queue_entry *entry); |
diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.c b/drivers/net/wireless/rt2x00/rt2x00queue.c index b9cc253cf962..5097fe0f9f51 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.c +++ b/drivers/net/wireless/rt2x00/rt2x00queue.c | |||
@@ -430,10 +430,10 @@ static int rt2x00queue_write_tx_data(struct queue_entry *entry, | |||
430 | memset(entry->skb->data, 0, rt2x00dev->ops->extra_tx_headroom); | 430 | memset(entry->skb->data, 0, rt2x00dev->ops->extra_tx_headroom); |
431 | 431 | ||
432 | /* | 432 | /* |
433 | * Call the driver's write_tx_datadesc function, if it exists. | 433 | * Call the driver's write_tx_data function, if it exists. |
434 | */ | 434 | */ |
435 | if (rt2x00dev->ops->lib->write_tx_datadesc) | 435 | if (rt2x00dev->ops->lib->write_tx_data) |
436 | rt2x00dev->ops->lib->write_tx_datadesc(entry, txdesc); | 436 | rt2x00dev->ops->lib->write_tx_data(entry, txdesc); |
437 | 437 | ||
438 | /* | 438 | /* |
439 | * Map the skb to DMA. | 439 | * Map the skb to DMA. |