usb: gadget: f_ecm: add configfs support
[deliverable/linux.git] / drivers / usb / gadget / u_ecm.h
index 99b6b995988f4b0f2b3f5b24ee5269eac914f2d1..262cc03cc2c01cb2a739310f53814e0ad6691d7c 100644 (file)
@@ -22,6 +22,15 @@ struct f_ecm_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_ECM_H */
This page took 0.036375 seconds and 5 git commands to generate.