forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/saa7146/mxb.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 mxb - v4l2 driver for the Multimedia eXtension Board
34
....@@ -6,19 +7,6 @@
67 Visit http://www.themm.net/~mihu/linux/saa7146/mxb.html
78 for further details about this card.
89
9
- This program is free software; you can redistribute it and/or modify
10
- it under the terms of the GNU General Public License as published by
11
- the Free Software Foundation; either version 2 of the License, or
12
- (at your option) any later version.
13
-
14
- This program is distributed in the hope that it will be useful,
15
- but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
- GNU General Public License for more details.
18
-
19
- You should have received a copy of the GNU General Public License
20
- along with this program; if not, write to the Free Software
21
- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2210 */
2311
2412 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -399,7 +387,7 @@
399387
400388 /* check if the saa7740 (aka 'sound arena module') is present
401389 on the mxb. if so, we must initialize it. due to lack of
402
- informations about the saa7740, the values were reverse
390
+ information about the saa7740, the values were reverse
403391 engineered. */
404392 msg.addr = 0x1b;
405393 msg.flags = 0;
....@@ -495,7 +483,7 @@
495483 input_port_selection[input].hps_sync);
496484
497485 /* prepare switching of tea6415c and saa7111a;
498
- have a look at the 'background'-file for further informations */
486
+ have a look at the 'background'-file for further information */
499487 switch (input) {
500488 case TUNER:
501489 i = SAA7115_COMPOSITE0;
....@@ -553,7 +541,7 @@
553541 DEB_EE("VIDIOC_G_TUNER: %d\n", t->index);
554542
555543 memset(t, 0, sizeof(*t));
556
- strlcpy(t->name, "TV Tuner", sizeof(t->name));
544
+ strscpy(t->name, "TV Tuner", sizeof(t->name));
557545 t->type = V4L2_TUNER_ANALOG_TV;
558546 t->capability = V4L2_TUNER_CAP_NORM | V4L2_TUNER_CAP_STEREO |
559547 V4L2_TUNER_CAP_LANG1 | V4L2_TUNER_CAP_LANG2 | V4L2_TUNER_CAP_SAP;
....@@ -726,7 +714,7 @@
726714 vv_data.vid_ops.vidioc_g_register = vidioc_g_register;
727715 vv_data.vid_ops.vidioc_s_register = vidioc_s_register;
728716 #endif
729
- if (saa7146_register_device(&mxb->video_dev, dev, "mxb", VFL_TYPE_GRABBER)) {
717
+ if (saa7146_register_device(&mxb->video_dev, dev, "mxb", VFL_TYPE_VIDEO)) {
730718 ERR("cannot register capture v4l2 device. skipping.\n");
731719 saa7146_vv_release(dev);
732720 return -1;