.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * pluto2.c - Satelco Easywatch Mobile Terrestrial Receiver [DVB-T] |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * based on pluto2.c 1.10 - http://instinct-wp8.no-ip.org/pluto/ |
---|
7 | 8 | * by Dany Salman <salmandany@yahoo.fr> |
---|
8 | 9 | * Copyright (c) 2004 TDF |
---|
9 | | - * |
---|
10 | | - * This program is free software; you can redistribute it and/or modify |
---|
11 | | - * it under the terms of the GNU General Public License as published by |
---|
12 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
13 | | - * (at your option) any later version. |
---|
14 | | - * |
---|
15 | | - * This program is distributed in the hope that it will be useful, |
---|
16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
18 | | - * GNU General Public License for more details. |
---|
19 | | - * |
---|
20 | 10 | */ |
---|
21 | 11 | |
---|
22 | 12 | #include <linux/i2c.h> |
---|
.. | .. |
---|
633 | 623 | |
---|
634 | 624 | /* i2c */ |
---|
635 | 625 | i2c_set_adapdata(&pluto->i2c_adap, pluto); |
---|
636 | | - strcpy(pluto->i2c_adap.name, DRIVER_NAME); |
---|
| 626 | + strscpy(pluto->i2c_adap.name, DRIVER_NAME, sizeof(pluto->i2c_adap.name)); |
---|
637 | 627 | pluto->i2c_adap.owner = THIS_MODULE; |
---|
638 | 628 | pluto->i2c_adap.dev.parent = &pdev->dev; |
---|
639 | 629 | pluto->i2c_adap.algo_data = &pluto->i2c_bit; |
---|