| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Driver for the Conexant CX23885/7/8 PCIe bridge |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Various common ioctl() support functions |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright (c) 2009 Andy Walls <awalls@md.metrocast.net> |
|---|
| 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 | | - * |
|---|
| 17 | | - * GNU General Public License for more details. |
|---|
| 18 | 8 | */ |
|---|
| 19 | 9 | |
|---|
| 20 | 10 | #include "cx23885.h" |
|---|
| .. | .. |
|---|
| 31 | 21 | if (chip->match.addr == 1) { |
|---|
| 32 | 22 | if (dev->v4l_device == NULL) |
|---|
| 33 | 23 | return -EINVAL; |
|---|
| 34 | | - strlcpy(chip->name, "cx23417", sizeof(chip->name)); |
|---|
| 24 | + strscpy(chip->name, "cx23417", sizeof(chip->name)); |
|---|
| 35 | 25 | } else { |
|---|
| 36 | | - strlcpy(chip->name, dev->v4l2_dev.name, sizeof(chip->name)); |
|---|
| 26 | + strscpy(chip->name, dev->v4l2_dev.name, sizeof(chip->name)); |
|---|
| 37 | 27 | } |
|---|
| 38 | 28 | return 0; |
|---|
| 39 | 29 | } |
|---|