usb: gadget: f_ncm: add configfs support
[pandora-kernel.git] / drivers / usb / gadget / u_ncm.h
index 1e22b5f..ce0f3a7 100644 (file)
@@ -22,6 +22,15 @@ struct f_ncm_opts {
        struct usb_function_instance    func_inst;
        struct net_device               *net;
        bool                            bound;
+
+       /*
+        * Read/write access to configfs attributes is handled by configfs.
+        *
+        * This is to protect the data from concurrent access by read/write
+        * and create symlink/remove symlink.
+        */
+       struct mutex                    lock;
+       int                             refcnt;
 };
 
 #endif /* U_NCM_H */