diff options
author | Ajay Singh | 2018-09-25 08:23:31 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-09-25 20:53:57 +0200 |
commit | de11f709dfaf267658c3478361b2a2822b5263c5 (patch) | |
tree | a98bd90feac1c0cae09be65ed54e0899ec8c855b /drivers/staging/wilc1000/linux_wlan.c | |
parent | staging: wilc1000: remove unused wid from cfg struct (diff) | |
download | kernel-qcow2-linux-de11f709dfaf267658c3478361b2a2822b5263c5.tar.gz kernel-qcow2-linux-de11f709dfaf267658c3478361b2a2822b5263c5.tar.xz kernel-qcow2-linux-de11f709dfaf267658c3478361b2a2822b5263c5.zip |
staging: wilc1000: refactor code to remove 'mac_status' from 'wilc_mac_cfg' struct
Refactor the code by removing use of 'mac_status' from 'wilc_mac_cfg'
and only have the string type configuration values in 'wilc_mac_cfg'
struct. Now fetch the value 'WID_STATUS' configuration from 'g_cfg_byte'
array.
Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/linux_wlan.c')
-rw-r--r-- | drivers/staging/wilc1000/linux_wlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 06b80088f9cf..39f07923ef1c 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -159,9 +159,9 @@ static void deinit_irq(struct net_device *dev) void wilc_mac_indicate(struct wilc *wilc) { - int status; + s8 status; - wilc_wlan_cfg_get_val(WID_STATUS, (unsigned char *)&status, 4); + wilc_wlan_cfg_get_val(WID_STATUS, &status, 1); if (wilc->mac_status == MAC_STATUS_INIT) { wilc->mac_status = status; complete(&wilc->sync_event); |