forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/ttpci/budget-av.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * budget-av.c: driver for the SAA7146 based Budget DVB cards
34 * with analog video in
....@@ -11,21 +12,6 @@
1112 *
1213 * Copyright (C) 1999-2002 Ralph Metzler
1314 * & Marcus Metzler for convergence integrated media GmbH
14
- *
15
- * This program is free software; you can redistribute it and/or
16
- * modify it under the terms of the GNU General Public License
17
- * as published by the Free Software Foundation; either version 2
18
- * of the License, or (at your option) any later version.
19
- *
20
- *
21
- * This program is distributed in the hope that it will be useful,
22
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
- * GNU General Public License for more details.
25
- *
26
- * To obtain the license, point your browser to
27
- * http://www.gnu.org/copyleft/gpl.html
28
- *
2915 *
3016 * the project's page is at https://linuxtv.org
3117 */
....@@ -1240,7 +1226,7 @@
12401226 * but so far it has been only confirmed for this type
12411227 */
12421228 budget_av->reinitialise_demod = 1;
1243
- /* fall through */
1229
+ fallthrough;
12441230 case SUBID_DVBS_KNC1_PLUS:
12451231 case SUBID_DVBS_EASYWATCH_1:
12461232 if (saa->pci->subsystem_vendor == 0x1894) {
....@@ -1484,7 +1470,7 @@
14841470 vv_data.vid_ops.vidioc_g_input = vidioc_g_input;
14851471 vv_data.vid_ops.vidioc_s_input = vidioc_s_input;
14861472
1487
- if ((err = saa7146_register_device(&budget_av->vd, dev, "knc1", VFL_TYPE_GRABBER))) {
1473
+ if ((err = saa7146_register_device(&budget_av->vd, dev, "knc1", VFL_TYPE_VIDEO))) {
14881474 /* fixme: proper cleanup here */
14891475 ERR("cannot register capture v4l2 device\n");
14901476 saa7146_vv_release(dev);