OSDN Git Service

staging: wilc1000: use list_head to maintain 'rxq_entry_t elements in rx queue
authorAjay Singh <ajay.kathat@microchip.com>
Mon, 4 Jun 2018 05:29:08 +0000 (10:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 17 Jun 2018 07:05:13 +0000 (09:05 +0200)
commit6adc35d973018a13076b36e85a2774fdcc24608b
tree129a7f521b4fbe5dcadfcee145f9d19085d41f63
parent3d9241d652748cd94f333562da45e8bd85ff6a47
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>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wfi_netdevice.h
drivers/staging/wilc1000/wilc_wlan.c
drivers/staging/wilc1000/wilc_wlan.h