forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/media/usb/pwc/pwc.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /* (C) 1999-2003 Nemosoft Unv.
23 (C) 2004-2006 Luc Saillard (luc@saillard.org)
34
....@@ -7,19 +8,6 @@
78 The decompression routines have been implemented by reverse-engineering the
89 Nemosoft binary pwcx module. Caveat emptor.
910
10
- This program is free software; you can redistribute it and/or modify
11
- it under the terms of the GNU General Public License as published by
12
- the Free Software Foundation; either version 2 of the License, or
13
- (at your option) any later version.
14
-
15
- This program is distributed in the hope that it will be useful,
16
- but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- GNU General Public License for more details.
19
-
20
- You should have received a copy of the GNU General Public License
21
- along with this program; if not, write to the Free Software
22
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2311 */
2412
2513 #ifndef PWC_H
....@@ -55,15 +43,15 @@
5543
5644
5745 /* Trace certain actions in the driver */
58
-#define PWC_DEBUG_LEVEL_MODULE (1<<0)
59
-#define PWC_DEBUG_LEVEL_PROBE (1<<1)
60
-#define PWC_DEBUG_LEVEL_OPEN (1<<2)
61
-#define PWC_DEBUG_LEVEL_READ (1<<3)
62
-#define PWC_DEBUG_LEVEL_MEMORY (1<<4)
63
-#define PWC_DEBUG_LEVEL_FLOW (1<<5)
64
-#define PWC_DEBUG_LEVEL_SIZE (1<<6)
65
-#define PWC_DEBUG_LEVEL_IOCTL (1<<7)
66
-#define PWC_DEBUG_LEVEL_TRACE (1<<8)
46
+#define PWC_DEBUG_LEVEL_MODULE BIT(0)
47
+#define PWC_DEBUG_LEVEL_PROBE BIT(1)
48
+#define PWC_DEBUG_LEVEL_OPEN BIT(2)
49
+#define PWC_DEBUG_LEVEL_READ BIT(3)
50
+#define PWC_DEBUG_LEVEL_MEMORY BIT(4)
51
+#define PWC_DEBUG_LEVEL_FLOW BIT(5)
52
+#define PWC_DEBUG_LEVEL_SIZE BIT(6)
53
+#define PWC_DEBUG_LEVEL_IOCTL BIT(7)
54
+#define PWC_DEBUG_LEVEL_TRACE BIT(8)
6755
6856 #define PWC_DEBUG_MODULE(fmt, args...) PWC_DEBUG(MODULE, fmt, ##args)
6957 #define PWC_DEBUG_PROBE(fmt, args...) PWC_DEBUG(PROBE, fmt, ##args)
....@@ -205,7 +193,7 @@
205193 decompressor) */
206194 __u8 cmd[4]; /* the four byte of the command (in case of
207195 nala, only the first 3 bytes is filled) */
208
- __u8 rawframe[0]; /* frame_size = H / 4 * vbandlength */
196
+ __u8 rawframe[]; /* frame_size = H / 4 * vbandlength */
209197 } __packed;
210198
211199 /* intermediate buffers with raw data from the USB cam */