.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * STK1160 driver |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * Based on Easycap driver by R.M. Thomas |
---|
8 | 9 | * Copyright (C) 2010 R.M. Thomas |
---|
9 | 10 | * <rmthomas--a.t--sciolus.org> |
---|
10 | | - * |
---|
11 | | - * This program is free software; you can redistribute it and/or modify |
---|
12 | | - * it under the terms of the GNU General Public License as published by |
---|
13 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
14 | | - * (at your option) any later version. |
---|
15 | | - * |
---|
16 | | - * This program is distributed in the hope that it will be useful, |
---|
17 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
18 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
19 | | - * GNU General Public License for more details. |
---|
20 | | - * |
---|
21 | 11 | */ |
---|
22 | 12 | |
---|
23 | 13 | #include <linux/module.h> |
---|
.. | .. |
---|
260 | 250 | |
---|
261 | 251 | dev->i2c_adap = adap_template; |
---|
262 | 252 | dev->i2c_adap.dev.parent = dev->dev; |
---|
263 | | - strcpy(dev->i2c_adap.name, "stk1160"); |
---|
| 253 | + strscpy(dev->i2c_adap.name, "stk1160", sizeof(dev->i2c_adap.name)); |
---|
264 | 254 | dev->i2c_adap.algo_data = dev; |
---|
265 | 255 | |
---|
266 | 256 | i2c_set_adapdata(&dev->i2c_adap, &dev->v4l2_dev); |
---|