blob: 5b7e2eb90336e8b3b3cf9e15c507edf7185c9208 [file] [log] [blame]
Greg Kroah-Hartman5fd54ac2017-11-03 11:28:30 +01001// SPDX-License-Identifier: GPL-2.0
Andrzej Pietrasiewicz8cedba72013-05-28 09:15:53 +02002/*
3 * u_gether.h
4 *
5 * Utility definitions for the subset function
6 *
7 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
8 * http://www.samsung.com
9 *
10 * Author: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Andrzej Pietrasiewicz8cedba72013-05-28 09:15:53 +020011 */
12
13#ifndef U_GETHER_H
14#define U_GETHER_H
15
16#include <linux/usb/composite.h>
17
18struct f_gether_opts {
19 struct usb_function_instance func_inst;
20 struct net_device *net;
21 bool bound;
Andrzej Pietrasiewicz02832e52013-05-28 09:15:56 +020022
23 /*
24 * Read/write access to configfs attributes is handled by configfs.
25 *
26 * This is to protect the data from concurrent access by read/write
27 * and create symlink/remove symlink.
28 */
29 struct mutex lock;
30 int refcnt;
Andrzej Pietrasiewicz8cedba72013-05-28 09:15:53 +020031};
32
33#endif /* U_GETHER_H */