| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ngene-i2c.c: nGene PCIe bridge driver i2c functions |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 7 | 8 | * Modifications for new nGene firmware, |
|---|
| 8 | 9 | * support for EEPROM-copying, |
|---|
| 9 | 10 | * support for new dual DVB-S2 card prototype |
|---|
| 10 | | - * |
|---|
| 11 | | - * |
|---|
| 12 | | - * This program is free software; you can redistribute it and/or |
|---|
| 13 | | - * modify it under the terms of the GNU General Public License |
|---|
| 14 | | - * version 2 only, as published by the Free Software Foundation. |
|---|
| 15 | | - * |
|---|
| 16 | | - * |
|---|
| 17 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 18 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 19 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 20 | | - * GNU General Public License for more details. |
|---|
| 21 | | - * |
|---|
| 22 | | - * To obtain the license, point your browser to |
|---|
| 23 | | - * http://www.gnu.org/copyleft/gpl.html |
|---|
| 24 | 11 | */ |
|---|
| 25 | 12 | |
|---|
| 26 | 13 | /* FIXME - some of these can probably be removed */ |
|---|
| .. | .. |
|---|
| 161 | 148 | |
|---|
| 162 | 149 | i2c_set_adapdata(adap, &(dev->channel[dev_nr])); |
|---|
| 163 | 150 | |
|---|
| 164 | | - strcpy(adap->name, "nGene"); |
|---|
| 151 | + strscpy(adap->name, "nGene", sizeof(adap->name)); |
|---|
| 165 | 152 | |
|---|
| 166 | 153 | adap->algo = &ngene_i2c_algo; |
|---|
| 167 | 154 | adap->algo_data = (void *)&(dev->channel[dev_nr]); |
|---|