aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/u_rndis.h
diff options
context:
space:
mode:
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>2013-05-28 03:16:01 -0400
committerFelipe Balbi <balbi@ti.com>2013-06-10 10:58:10 -0400
commitb3df2faacb40da7d9c4ed1a0b5304cf346e46ca0 (patch)
tree5a5eafd9044afc02b13a5f3546ebbd505cd44f9a /drivers/usb/gadget/u_rndis.h
parent4e75e7275652824395696ba1e34c10d368958caf (diff)
usb: gadget: f_rndis: add configfs support
f_rndis learns about configfs so we can, eventually, remove in-kernel gadget drivers. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/u_rndis.h')
-rw-r--r--drivers/usb/gadget/u_rndis.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/gadget/u_rndis.h b/drivers/usb/gadget/u_rndis.h
index d274df56ce75..c62ba82e9600 100644
--- a/drivers/usb/gadget/u_rndis.h
+++ b/drivers/usb/gadget/u_rndis.h
@@ -25,6 +25,15 @@ struct f_rndis_opts {
25 struct net_device *net; 25 struct net_device *net;
26 bool bound; 26 bool bound;
27 bool borrowed_net; 27 bool borrowed_net;
28
29 /*
30 * Read/write access to configfs attributes is handled by configfs.
31 *
32 * This is to protect the data from concurrent access by read/write
33 * and create symlink/remove symlink.
34 */
35 struct mutex lock;
36 int refcnt;
28}; 37};
29 38
30void rndis_borrow_net(struct usb_function_instance *f, struct net_device *net); 39void rndis_borrow_net(struct usb_function_instance *f, struct net_device *net);