summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wilc1000/wilc_wlan.h
diff options
context:
space:
mode:
authorAjay Singh <ajay.kathat@microchip.com>2018-06-04 10:59:08 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-17 09:05:13 +0200
commit6adc35d973018a13076b36e85a2774fdcc24608b (patch)
tree129a7f521b4fbe5dcadfcee145f9d19085d41f63 /drivers/staging/wilc1000/wilc_wlan.h
parent3d9241d652748cd94f333562da45e8bd85ff6a47 (diff)
staging: wilc1000: use list_head to maintain 'rxq_entry_t elements in rx queue
Make use of 'list_head' data structure to maintain the rx buffer queue. Modified wilc_wlan_rxq_add() to add the element at the tail by using list_head API and wilc_wlan_rxq_remove() to remove the element from head. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com> Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_wlan.h')
-rw-r--r--drivers/staging/wilc1000/wilc_wlan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/wilc_wlan.h b/drivers/staging/wilc1000/wilc_wlan.h
index e0ff3e8c0836..dbdebf009024 100644
--- a/drivers/staging/wilc1000/wilc_wlan.h
+++ b/drivers/staging/wilc1000/wilc_wlan.h
@@ -218,7 +218,7 @@ struct txq_entry_t {
};
struct rxq_entry_t {
- struct rxq_entry_t *next;
+ struct list_head list;
u8 *buffer;
int buffer_size;
};