| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * cx88-vp3054-i2c.c -- support for the secondary I2C bus of the |
|---|
| 3 | 4 | * DNTV Live! DVB-T Pro (VP-3054), wired as: |
|---|
| 4 | 5 | * GPIO[0] -> SCL, GPIO[1] -> SDA |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * (c) 2005 Chris Pascoe <c.pascoe@itee.uq.edu.au> |
|---|
| 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 "cx88.h" |
|---|
| .. | .. |
|---|
| 114 | 105 | vp3054_i2c->algo = vp3054_i2c_algo_template; |
|---|
| 115 | 106 | |
|---|
| 116 | 107 | vp3054_i2c->adap.dev.parent = &dev->pci->dev; |
|---|
| 117 | | - strlcpy(vp3054_i2c->adap.name, core->name, |
|---|
| 108 | + strscpy(vp3054_i2c->adap.name, core->name, |
|---|
| 118 | 109 | sizeof(vp3054_i2c->adap.name)); |
|---|
| 119 | 110 | vp3054_i2c->adap.owner = THIS_MODULE; |
|---|
| 120 | 111 | vp3054_i2c->algo.data = dev; |
|---|