hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/media/usb/gspca/zc3xx.c
....@@ -1,18 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Z-Star/Vimicro zc301/zc302p/vc30x driver
34 *
45 * Copyright (C) 2009-2012 Jean-Francois Moine <http://moinejf.free.fr>
56 * Copyright (C) 2004 2005 2006 Michel Xhaard mxhaard@magic.fr
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
167 */
178
189 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -3602,7 +3593,7 @@
36023593 {0xaa, 0x14, 0x0081},
36033594 /* Other registers */
36043595 {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION},
3605
-/* Frame retreiving */
3596
+/* Frame retrieving */
36063597 {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS},
36073598 /* Gains */
36083599 {0xa0, 0xa0, ZC3XX_R1A8_DIGITALGAIN},
....@@ -3718,7 +3709,7 @@
37183709 {0xaa, 0x14, 0x0081},
37193710 /* Other registers */
37203711 {0xa0, 0x37, ZC3XX_R101_SENSORCORRECTION},
3721
-/* Frame retreiving */
3712
+/* Frame retrieving */
37223713 {0xa0, 0x00, ZC3XX_R019_AUTOADJUSTFPS},
37233714 /* Gains */
37243715 {0xa0, 0xa0, ZC3XX_R1A8_DIGITALGAIN},
....@@ -6775,7 +6766,7 @@
67756766 case SENSOR_HV7131R:
67766767 case SENSOR_TAS5130C:
67776768 reg_r(gspca_dev, 0x0008);
6778
- /* fall thru */
6769
+ fallthrough;
67796770 case SENSOR_PO2030:
67806771 reg_w(gspca_dev, 0x03, 0x0008);
67816772 break;
....@@ -6824,7 +6815,7 @@
68246815 case SENSOR_TAS5130C:
68256816 reg_w(gspca_dev, 0x09, 0x01ad); /* (from win traces) */
68266817 reg_w(gspca_dev, 0x15, 0x01ae);
6827
- /* fall thru */
6818
+ fallthrough;
68286819 case SENSOR_PAS202B:
68296820 case SENSOR_PO2030:
68306821 /* reg_w(gspca_dev, 0x40, ZC3XX_R117_GGAIN); in win traces */