forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/pluto2/pluto2.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * pluto2.c - Satelco Easywatch Mobile Terrestrial Receiver [DVB-T]
34 *
....@@ -6,17 +7,6 @@
67 * based on pluto2.c 1.10 - http://instinct-wp8.no-ip.org/pluto/
78 * by Dany Salman <salmandany@yahoo.fr>
89 * Copyright (c) 2004 TDF
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (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
- *
2010 */
2111
2212 #include <linux/i2c.h>
....@@ -633,7 +623,7 @@
633623
634624 /* i2c */
635625 i2c_set_adapdata(&pluto->i2c_adap, pluto);
636
- strcpy(pluto->i2c_adap.name, DRIVER_NAME);
626
+ strscpy(pluto->i2c_adap.name, DRIVER_NAME, sizeof(pluto->i2c_adap.name));
637627 pluto->i2c_adap.owner = THIS_MODULE;
638628 pluto->i2c_adap.dev.parent = &pdev->dev;
639629 pluto->i2c_adap.algo_data = &pluto->i2c_bit;