Commit 93592a65 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: remove extra argument passing to wilc_send_config_pkt()

Cleanup patch to remove the passing of driver handler, get the 'idx'
value inside the called function.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 39cf54fc
This diff is collapsed.
...@@ -1202,10 +1202,11 @@ int wilc_wlan_cfg_get_val(struct wilc *wl, u16 wid, u8 *buffer, u32 buffer_size) ...@@ -1202,10 +1202,11 @@ int wilc_wlan_cfg_get_val(struct wilc *wl, u16 wid, u8 *buffer, u32 buffer_size)
} }
int wilc_send_config_pkt(struct wilc_vif *vif, u8 mode, struct wid *wids, int wilc_send_config_pkt(struct wilc_vif *vif, u8 mode, struct wid *wids,
u32 count, u32 drv) u32 count)
{ {
int i; int i;
int ret = 0; int ret = 0;
u32 drv = wilc_get_vif_idx(vif);
if (mode == WILC_GET_CFG) { if (mode == WILC_GET_CFG) {
for (i = 0; i < count; i++) { for (i = 0; i < count; i++) {
......
...@@ -307,7 +307,7 @@ void host_sleep_notify(struct wilc *wilc); ...@@ -307,7 +307,7 @@ void host_sleep_notify(struct wilc *wilc);
void chip_allow_sleep(struct wilc *wilc); void chip_allow_sleep(struct wilc *wilc);
void chip_wakeup(struct wilc *wilc); void chip_wakeup(struct wilc *wilc);
int wilc_send_config_pkt(struct wilc_vif *vif, u8 mode, struct wid *wids, int wilc_send_config_pkt(struct wilc_vif *vif, u8 mode, struct wid *wids,
u32 count, u32 drv); u32 count);
int wilc_wlan_init(struct net_device *dev); int wilc_wlan_init(struct net_device *dev);
u32 wilc_get_chipid(struct wilc *wilc, bool update); u32 wilc_get_chipid(struct wilc *wilc, bool update);
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment