forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/cx25821/cx25821-i2c.c
....@@ -1,20 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for the Conexant CX25821 PCIe bridge
34 *
45 * Copyright (C) 2009 Conexant Systems Inc.
56 * Authors <shu.lin@conexant.com>, <hiep.huynh@conexant.com>
67 * Based on Steven Toth <stoth@linuxtv.org> cx23885 driver
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
- *
17
- * GNU General Public License for more details.
188 */
199
2010 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -306,7 +296,7 @@
306296 bus->i2c_client = cx25821_i2c_client_template;
307297 bus->i2c_adap.dev.parent = &dev->pci->dev;
308298
309
- strlcpy(bus->i2c_adap.name, bus->dev->name, sizeof(bus->i2c_adap.name));
299
+ strscpy(bus->i2c_adap.name, bus->dev->name, sizeof(bus->i2c_adap.name));
310300
311301 bus->i2c_adap.algo_data = bus;
312302 i2c_set_adapdata(&bus->i2c_adap, &dev->v4l2_dev);