forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/usb/gspca/ov519.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * OV519 driver
34 *
....@@ -20,17 +21,6 @@
2021 *
2122 * Copyright (c) 2004-2007 Romain Beauxis <toots@rastageeks.org>
2223 * Support for OV7670 sensors was contributed by Sam Skipsey <aoanla@yahoo.com>
23
- *
24
- * This program is free software; you can redistribute it and/or modify
25
- * it under the terms of the GNU General Public License as published by
26
- * the Free Software Foundation; either version 2 of the License, or
27
- * any later version.
28
- *
29
- * This program is distributed in the hope that it will be useful,
30
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
31
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32
- * GNU General Public License for more details.
33
- *
3424 */
3525
3626 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -1945,7 +1935,7 @@
19451935 { 0x62, 0x5f }, /* was 0xd7, new from windrv 090403 */
19461936 { 0x63, 0xff },
19471937 { 0x64, 0x53 }, /* new windrv 090403 says 0x57,
1948
- * maybe thats wrong */
1938
+ * maybe that's wrong */
19491939 { 0x65, 0x00 },
19501940 { 0x66, 0x55 },
19511941 { 0x67, 0xb0 },
....@@ -2014,7 +2004,7 @@
20142004 break;
20152005 case BRIDGE_OVFX2:
20162006 req = 0x0a;
2017
- /* fall through */
2007
+ fallthrough;
20182008 case BRIDGE_W9968CF:
20192009 gspca_dbg(gspca_dev, D_USBO, "SET %02x %04x %04x\n",
20202010 req, value, index);
....@@ -3538,7 +3528,7 @@
35383528 case SEN_OV76BE:
35393529 if (sd->gspca_dev.pixfmt.width == 320)
35403530 interlaced = 1;
3541
- /* Fall through */
3531
+ fallthrough;
35423532 case SEN_OV6630:
35433533 case SEN_OV7610:
35443534 case SEN_OV7670:
....@@ -3551,7 +3541,7 @@
35513541 break;
35523542 }
35533543 /* For 640x480 case */
3554
- /* fall through */
3544
+ fallthrough;
35553545 default:
35563546 /* case 20: */
35573547 /* case 15: */
....@@ -3678,7 +3668,7 @@
36783668 case SEN_OV7620AE:
36793669 /*
36803670 * HdG: 640x480 needs special handling on device
3681
- * revision 2, we check for device revison > 0 to
3671
+ * revision 2, we check for device revision > 0 to
36823672 * avoid regressions, as we don't know the correct
36833673 * thing todo for revision 1.
36843674 *