.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for the NXP SAA7164 PCIe bridge |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2010-2015 Steven Toth <stoth@kernellabs.com> |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License as published by |
---|
8 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
9 | | - * (at your option) any later version. |
---|
10 | | - * |
---|
11 | | - * This program is distributed in the hope that it will be useful, |
---|
12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | | - * |
---|
15 | | - * GNU General Public License for more details. |
---|
16 | 6 | */ |
---|
17 | 7 | |
---|
18 | 8 | #include <linux/module.h> |
---|
.. | .. |
---|
99 | 89 | |
---|
100 | 90 | bus->i2c_adap.dev.parent = &dev->pci->dev; |
---|
101 | 91 | |
---|
102 | | - strlcpy(bus->i2c_adap.name, bus->dev->name, |
---|
| 92 | + strscpy(bus->i2c_adap.name, bus->dev->name, |
---|
103 | 93 | sizeof(bus->i2c_adap.name)); |
---|
104 | 94 | |
---|
105 | 95 | bus->i2c_adap.algo_data = bus; |
---|