forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/media/radio/si470x/radio-si470x-common.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * drivers/media/radio/si470x/radio-si470x-common.c
34 *
....@@ -5,16 +6,6 @@
56 *
67 * Copyright (c) 2009 Tobias Lorenz <tobias.lorenz@gmx.net>
78 * Copyright (c) 2012 Hans de Goede <hdegoede@redhat.com>
8
- *
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.
189 */
1910
2011
....@@ -622,7 +613,7 @@
622613 }
623614
624615 /* driver constants */
625
- strcpy(tuner->name, "FM");
616
+ strscpy(tuner->name, "FM", sizeof(tuner->name));
626617 tuner->type = V4L2_TUNER_RADIO;
627618 tuner->capability = V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO |
628619 V4L2_TUNER_CAP_RDS | V4L2_TUNER_CAP_RDS_BLOCK_IO |