diff options
author | Glen Lee | 2015-11-18 07:11:35 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-12-18 23:30:50 +0100 |
commit | d40c99c74c91441b935a900b5c92df7f81e0b8b1 (patch) | |
tree | 3ef27bd454a3e6bb8cbdb62cfc7813c1b746a58e /drivers/staging/wilc1000/coreconfigurator.c | |
parent | staging: wilc1000: wilc_wlan_cfg_set: pass struct wilc (diff) | |
download | kernel-qcow2-linux-d40c99c74c91441b935a900b5c92df7f81e0b8b1.tar.gz kernel-qcow2-linux-d40c99c74c91441b935a900b5c92df7f81e0b8b1.tar.xz kernel-qcow2-linux-d40c99c74c91441b935a900b5c92df7f81e0b8b1.zip |
staging: wilc1000: wilc_wlan_cfg_get: pass struct wilc
This patch passes the struct wilc to the function and use it instead of
global variable wilc_dev.
Signed-off-by: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/coreconfigurator.c')
-rw-r--r-- | drivers/staging/wilc1000/coreconfigurator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c index 6278aecba2f7..0cd2accf1a34 100644 --- a/drivers/staging/wilc1000/coreconfigurator.c +++ b/drivers/staging/wilc1000/coreconfigurator.c @@ -597,7 +597,7 @@ s32 wilc_send_config_pkt(struct wilc *wilc, u8 mode, struct wid *wids, for (counter = 0; counter < count; counter++) { PRINT_INFO(CORECONFIG_DBG, "Sending CFG packet [%d][%d]\n", !counter, (counter == count - 1)); - if (!wilc_wlan_cfg_get(!counter, + if (!wilc_wlan_cfg_get(wilc, !counter, wids[counter].id, (counter == count - 1), drv)) { |