forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/media/pci/ngene/ngene-i2c.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ngene-i2c.c: nGene PCIe bridge driver i2c functions
34 *
....@@ -7,20 +8,6 @@
78 * Modifications for new nGene firmware,
89 * support for EEPROM-copying,
910 * support for new dual DVB-S2 card prototype
10
- *
11
- *
12
- * This program is free software; you can redistribute it and/or
13
- * modify it under the terms of the GNU General Public License
14
- * version 2 only, as published by the Free Software Foundation.
15
- *
16
- *
17
- * This program is distributed in the hope that it will be useful,
18
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
- * GNU General Public License for more details.
21
- *
22
- * To obtain the license, point your browser to
23
- * http://www.gnu.org/copyleft/gpl.html
2411 */
2512
2613 /* FIXME - some of these can probably be removed */
....@@ -161,7 +148,7 @@
161148
162149 i2c_set_adapdata(adap, &(dev->channel[dev_nr]));
163150
164
- strcpy(adap->name, "nGene");
151
+ strscpy(adap->name, "nGene", sizeof(adap->name));
165152
166153 adap->algo = &ngene_i2c_algo;
167154 adap->algo_data = (void *)&(dev->channel[dev_nr]);