| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * device driver for philips saa7134 based TV cards |
|---|
| 4 | 5 | * i2c interface support |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * (c) 2001,02 Gerd Knorr <kraxel@bytesex.org> [SuSE Labs] |
|---|
| 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 | | - * GNU General Public License for more details. |
|---|
| 17 | 8 | */ |
|---|
| 18 | 9 | |
|---|
| 19 | 10 | #include "saa7134.h" |
|---|
| .. | .. |
|---|
| 441 | 432 | { |
|---|
| 442 | 433 | dev->i2c_adap = saa7134_adap_template; |
|---|
| 443 | 434 | dev->i2c_adap.dev.parent = &dev->pci->dev; |
|---|
| 444 | | - strcpy(dev->i2c_adap.name,dev->name); |
|---|
| 435 | + strscpy(dev->i2c_adap.name, dev->name, sizeof(dev->i2c_adap.name)); |
|---|
| 445 | 436 | dev->i2c_adap.algo_data = dev; |
|---|
| 446 | 437 | i2c_set_adapdata(&dev->i2c_adap, &dev->v4l2_dev); |
|---|
| 447 | 438 | i2c_add_adapter(&dev->i2c_adap); |
|---|