treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / usb / gadget / function / u_midi.h
blob29bf006c0a13e5b2b1d68d5d128b3b66f5e7244f
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 <andrzejtp2010@gmail.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 */