staging: wilc1000: add struct wilc to host_if_drv
authorGlen Lee <glen.lee@atmel.com>
Wed, 18 Nov 2015 06:11:32 +0000 (15:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Dec 2015 22:30:50 +0000 (14:30 -0800)
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: Glen Lee <glen.lee@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c
drivers/staging/wilc1000/host_interface.h

index 672092b386dc6f15c1be5ac5ece11a63fc6d4763..4fae80dae6e02f404c11acaf9df2e268a4f5beda 100644 (file)
@@ -3843,6 +3843,7 @@ s32 wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
                result = -ENOMEM;
                goto _fail_;
        }
+       hif_drv->wilc = wilc;
        *hif_drv_handler = hif_drv;
        err = add_handler_in_list(hif_drv);
        if (err) {
index efeb9e2335896a7455686bf0e67f9ca25bdd50f4..004467c6550264b3585cdc4d1c0204e722c18a4f 100644 (file)
@@ -259,7 +259,9 @@ enum p2p_listen_state {
        P2P_GRP_FORMATION
 };
 
+struct wilc;
 struct host_if_drv {
+       struct wilc *wilc;
        struct user_scan_req usr_scan_req;
        struct user_conn_req usr_conn_req;
        struct remain_ch remain_on_ch;