mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 15:41:36 +00:00
a829dd5b38
This patch fixes various trivial coding-style issues in usx2y code, such as: * the assginments in if condition * comparison order with constants * NULL / zero checks * unsigned -> unsigned int * addition of braces in control blocks * debug print with function names * move local variables in block into function head * reduction of too nested indentations No functional changes. Link: https://lore.kernel.org/r/20210517131545.27252-4-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
35 lines
602 B
C
35 lines
602 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef US122L_H
|
|
#define US122L_H
|
|
|
|
|
|
struct us122l {
|
|
struct usb_device *dev;
|
|
int card_index;
|
|
int stride;
|
|
struct usb_stream_kernel sk;
|
|
|
|
struct mutex mutex;
|
|
struct file *first;
|
|
unsigned int second_periods_polled;
|
|
struct file *master;
|
|
struct file *slave;
|
|
struct list_head midi_list;
|
|
|
|
atomic_t mmap_count;
|
|
|
|
bool is_us144;
|
|
};
|
|
|
|
|
|
#define US122L(c) ((struct us122l *)(c)->private_data)
|
|
|
|
#define NAME_ALLCAPS "US-122L"
|
|
|
|
#define USB_ID_US122L 0x800E
|
|
#define USB_ID_US144 0x800F
|
|
#define USB_ID_US122MKII 0x8021
|
|
#define USB_ID_US144MKII 0x8020
|
|
|
|
#endif
|