Commit b82d940d authored by Glen Lee's avatar Glen Lee Committed by Greg Kroah-Hartman

staging: wilc1000: add struct wilc to host_if_drv

This patch adds struct wilc to host_if_dev and assign wilc to use driver's
primary structure in host_if_dev.
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f8598aaa
...@@ -3843,6 +3843,7 @@ s32 wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler) ...@@ -3843,6 +3843,7 @@ s32 wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
result = -ENOMEM; result = -ENOMEM;
goto _fail_; goto _fail_;
} }
hif_drv->wilc = wilc;
*hif_drv_handler = hif_drv; *hif_drv_handler = hif_drv;
err = add_handler_in_list(hif_drv); err = add_handler_in_list(hif_drv);
if (err) { if (err) {
......
...@@ -259,7 +259,9 @@ enum p2p_listen_state { ...@@ -259,7 +259,9 @@ enum p2p_listen_state {
P2P_GRP_FORMATION P2P_GRP_FORMATION
}; };
struct wilc;
struct host_if_drv { struct host_if_drv {
struct wilc *wilc;
struct user_scan_req usr_scan_req; struct user_scan_req usr_scan_req;
struct user_conn_req usr_conn_req; struct user_conn_req usr_conn_req;
struct remain_ch remain_on_ch; struct remain_ch remain_on_ch;
......
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