rt2x00: Rename rt2x00queue_timeout
authorIvo van Doorn <ivdoorn@gmail.com>
Thu, 4 Nov 2010 19:39:23 +0000 (20:39 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Nov 2010 18:26:02 +0000 (13:26 -0500)
Rename rt2x00queue_timeout to rt2x00queue_status_timeout to
better describe what is actually timing out (note that
we already have a rt2x00queue_dma_timeout).

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Helmut Schaa <helmut.schaa@googlemail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00queue.h
drivers/net/wireless/rt2x00/rt2x00usb.c

index 8a36ef31e8938539f102a03e7dcfa6fcaea81c43..64c00e2ab716d6a82fd68bc7346b4163475c352f 100644 (file)
@@ -593,10 +593,10 @@ static inline int rt2x00queue_threshold(struct data_queue *queue)
 }
 
 /**
- * rt2x00queue_timeout - Check if a timeout occured for STATUS reorts
+ * rt2x00queue_status_timeout - Check if a timeout occured for STATUS reports
  * @queue: Queue to check.
  */
-static inline int rt2x00queue_timeout(struct data_queue *queue)
+static inline int rt2x00queue_status_timeout(struct data_queue *queue)
 {
        return time_after(queue->last_action[Q_INDEX_DMA_DONE],
                          queue->last_action[Q_INDEX_DONE] + (HZ / 10));
index b3317df7a7d4afdd88169c8ad16f2ad99984bc9e..88995d50a5c71a1fde201e35ab59e64a3db50bab 100644 (file)
@@ -361,7 +361,7 @@ void rt2x00usb_watchdog(struct rt2x00_dev *rt2x00dev)
                if (!rt2x00queue_empty(queue)) {
                        if (rt2x00queue_dma_timeout(queue))
                                rt2x00usb_watchdog_tx_dma(queue);
-                       if (rt2x00queue_timeout(queue))
+                       if (rt2x00queue_status_timeout(queue))
                                rt2x00usb_watchdog_tx_status(queue);
                }
        }