| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * drivers/media/radio/si470x/radio-si470x-common.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright (c) 2009 Tobias Lorenz <tobias.lorenz@gmx.net> |
|---|
| 7 | 8 | * Copyright (c) 2012 Hans de Goede <hdegoede@redhat.com> |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 10 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 11 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 12 | | - * (at your option) any later version. |
|---|
| 13 | | - * |
|---|
| 14 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 15 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 16 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 17 | | - * GNU General Public License for more details. |
|---|
| 18 | 9 | */ |
|---|
| 19 | 10 | |
|---|
| 20 | 11 | |
|---|
| .. | .. |
|---|
| 622 | 613 | } |
|---|
| 623 | 614 | |
|---|
| 624 | 615 | /* driver constants */ |
|---|
| 625 | | - strcpy(tuner->name, "FM"); |
|---|
| 616 | + strscpy(tuner->name, "FM", sizeof(tuner->name)); |
|---|
| 626 | 617 | tuner->type = V4L2_TUNER_RADIO; |
|---|
| 627 | 618 | tuner->capability = V4L2_TUNER_CAP_LOW | V4L2_TUNER_CAP_STEREO | |
|---|
| 628 | 619 | V4L2_TUNER_CAP_RDS | V4L2_TUNER_CAP_RDS_BLOCK_IO | |
|---|