forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/ttpci/av7110_hw.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * av7110_hw.c: av7110 low level hardware access and firmware interface
34 *
....@@ -7,25 +8,12 @@
78 * originally based on code by:
89 * Copyright (C) 1998,1999 Christian Theiss <mistert@rz.fh-augsburg.de>
910 *
10
- * This program is free software; you can redistribute it and/or
11
- * modify it under the terms of the GNU General Public License
12
- * as published by the Free Software Foundation; either version 2
13
- * of the License, or (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
- * To obtain the license, point your browser to
20
- * http://www.gnu.org/copyleft/gpl.html
21
- *
2211 * the project's page is at https://linuxtv.org
2312 */
2413
2514 /* for debugging ARM communication: */
2615 //#define COM_DEBUG
2716
28
-#include <stdarg.h>
2917 #include <linux/types.h>
3018 #include <linux/kernel.h>
3119 #include <linux/string.h>
....@@ -1119,7 +1107,7 @@
11191107 break;
11201108 case OSD_SetRow:
11211109 dc->y1 = dc->y0;
1122
- /* fall through */
1110
+ fallthrough;
11231111 case OSD_SetBlock:
11241112 ret = OSDSetBlock(av7110, dc->x0, dc->y0, dc->x1, dc->y1, dc->color, dc->data);
11251113 break;