.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for the Conexant CX25821 PCIe bridge |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2009 Conexant Systems Inc. |
---|
5 | 6 | * Authors <shu.lin@conexant.com>, <hiep.huynh@conexant.com> |
---|
6 | 7 | * 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. |
---|
18 | 8 | */ |
---|
19 | 9 | |
---|
20 | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
.. | .. |
---|
306 | 296 | bus->i2c_client = cx25821_i2c_client_template; |
---|
307 | 297 | bus->i2c_adap.dev.parent = &dev->pci->dev; |
---|
308 | 298 | |
---|
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)); |
---|
310 | 300 | |
---|
311 | 301 | bus->i2c_adap.algo_data = bus; |
---|
312 | 302 | i2c_set_adapdata(&bus->i2c_adap, &dev->v4l2_dev); |
---|