forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 04dd17822334871b23ea2862f7798fb0e0007777
kernel/drivers/media/usb/gspca/stv06xx/stv06xx_st6422.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Support for the sensor part which is integrated (I think) into the
34 * st6422 stv06xx alike bridge, as its integrated there are no i2c writes
....@@ -9,17 +10,6 @@
910 * Copyright (c) 2001 Jean-Fredric Clere, Nikolas Zimmermann, Georg Acher
1011 * Mark Cave-Ayland, Carlo E Prelz, Dick Streefland
1112 * Copyright (c) 2002, 2003 Tuukka Toivonen
12
- *
13
- * This program is free software; you can redistribute it and/or modify
14
- * it under the terms of the GNU General Public License as published by
15
- * the Free Software Foundation; either version 2 of the License, or
16
- * (at your option) any later version.
17
- *
18
- * This program is distributed in the hope that it will be useful,
19
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
- * GNU General Public License for more details.
22
- *
2313 */
2414
2515 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -127,7 +117,7 @@
127117 {
128118 int err = 0, i;
129119
130
- const u16 st6422_bridge_init[][2] = {
120
+ static const u16 st6422_bridge_init[][2] = {
131121 { STV_ISO_ENABLE, 0x00 }, /* disable capture */
132122 { 0x1436, 0x00 },
133123 { 0x1432, 0x03 }, /* 0x00-0x1F brightness */