WIP FPC-III support
[linux/fpc-iii.git] / drivers / usb / gadget / function / u_gether.h
blob2f7a373ed4496a61d76337adbcd2a22900d67b39
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * u_gether.h
5 * Utility definitions for the subset function
7 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
8 * http://www.samsung.com
10 * Author: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
13 #ifndef U_GETHER_H
14 #define U_GETHER_H
16 #include <linux/usb/composite.h>
18 struct f_gether_opts {
19 struct usb_function_instance func_inst;
20 struct net_device *net;
21 bool bound;
24 * Read/write access to configfs attributes is handled by configfs.
26 * This is to protect the data from concurrent access by read/write
27 * and create symlink/remove symlink.
29 struct mutex lock;
30 int refcnt;
33 #endif /* U_GETHER_H */