forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/saa7134/saa7134-i2c.c
....@@ -1,19 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 *
34 * device driver for philips saa7134 based TV cards
45 * i2c interface support
56 *
67 * (c) 2001,02 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
- * GNU General Public License for more details.
178 */
189
1910 #include "saa7134.h"
....@@ -441,7 +432,7 @@
441432 {
442433 dev->i2c_adap = saa7134_adap_template;
443434 dev->i2c_adap.dev.parent = &dev->pci->dev;
444
- strcpy(dev->i2c_adap.name,dev->name);
435
+ strscpy(dev->i2c_adap.name, dev->name, sizeof(dev->i2c_adap.name));
445436 dev->i2c_adap.algo_data = dev;
446437 i2c_set_adapdata(&dev->i2c_adap, &dev->v4l2_dev);
447438 i2c_add_adapter(&dev->i2c_adap);