diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2013-05-28 09:15:51 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-06-10 17:58:00 +0300 |
commit | 17b80976f0aa28842593dae8b05fae9274b51375 (patch) | |
tree | 5fadb13f0352fe195ce59bc94144c994b8734490 /drivers/usb/gadget/u_eem.h | |
parent | 998da497ec75076549469216a35305684098375f (diff) | |
download | op-kernel-dev-17b80976f0aa28842593dae8b05fae9274b51375.zip op-kernel-dev-17b80976f0aa28842593dae8b05fae9274b51375.tar.gz |
usb: gadget: f_eem: add configfs support
f_eem learns about our configfs interface so we
can remove in-kernel gadget drivers in future.
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_eem.h')
-rw-r--r-- | drivers/usb/gadget/u_eem.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/gadget/u_eem.h b/drivers/usb/gadget/u_eem.h index 8f432f2..e3ae978 100644 --- a/drivers/usb/gadget/u_eem.h +++ b/drivers/usb/gadget/u_eem.h @@ -22,6 +22,15 @@ struct f_eem_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_EEM_H */ |