OSDN Git Service

staging: wilc1000: refactor code to avoid static variables for config parameters
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 25 Sep 2018 06:23:32 +0000 (11:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Sep 2018 18:53:57 +0000 (20:53 +0200)
commitacceb12a9f8b97ff0e76d3febed4e9941674e571
tree64980bf3a2da53e42d1af6b9bcfb8f4ba698d24e
parentde11f709dfaf267658c3478361b2a2822b5263c5
staging: wilc1000: refactor code to avoid static variables for config parameters

Refactor the code in wilc_wlan_cfg.c file to avoid the use of static
variables. Move the static variables as part of wilc struct and also
dynamically allocating memory for keeping those variables.

Signed-off-by: Ajay Singh <ajay.kathat@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
drivers/staging/wilc1000/wilc_wlan_cfg.c
drivers/staging/wilc1000/wilc_wlan_cfg.h