Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / drivers / usb / gadget / function / u_midi.h
blob5599aa5fc977ff46a8dfb1fecceff3cc8c7b4dfb
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * u_midi.h
5 * Utility definitions for the midi function
7 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
8 * http://www.samsung.com
10 * Author: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
13 #ifndef U_MIDI_H
14 #define U_MIDI_H
16 #include <linux/usb/composite.h>
18 struct f_midi_opts {
19 struct usb_function_instance func_inst;
20 int index;
21 char *id;
22 bool id_allocated;
23 unsigned int in_ports;
24 unsigned int out_ports;
25 unsigned int buflen;
26 unsigned int qlen;
29 * Protect the data form concurrent access by read/write
30 * and create symlink/remove symlink.
32 struct mutex lock;
33 int refcnt;
36 #endif /* U_MIDI_H */