forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/cx88/cx88-vp3054-i2c.c
....@@ -1,19 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * cx88-vp3054-i2c.c -- support for the secondary I2C bus of the
34 * DNTV Live! DVB-T Pro (VP-3054), wired as:
45 * GPIO[0] -> SCL, GPIO[1] -> SDA
56 *
67 * (c) 2005 Chris Pascoe <c.pascoe@itee.uq.edu.au>
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 "cx88.h"
....@@ -114,7 +105,7 @@
114105 vp3054_i2c->algo = vp3054_i2c_algo_template;
115106
116107 vp3054_i2c->adap.dev.parent = &dev->pci->dev;
117
- strlcpy(vp3054_i2c->adap.name, core->name,
108
+ strscpy(vp3054_i2c->adap.name, core->name,
118109 sizeof(vp3054_i2c->adap.name));
119110 vp3054_i2c->adap.owner = THIS_MODULE;
120111 vp3054_i2c->algo.data = dev;