treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / usb / gadget / function / u_printer.h
blob78797764f47833640be9a3b457d35c31323f16a4
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * u_printer.h
5 * Utility definitions for the printer function
7 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
8 * http://www.samsung.com
10 * Author: Andrzej Pietrasiewicz <andrzejtp2010@gmail.com>
13 #ifndef U_PRINTER_H
14 #define U_PRINTER_H
16 #include <linux/usb/composite.h>
18 struct f_printer_opts {
19 struct usb_function_instance func_inst;
20 int minor;
21 char *pnp_string;
22 bool pnp_string_allocated;
23 unsigned q_len;
26 * 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_PRINTER_H */