| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * drivers/media/radio/radio-si4713.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Copyright (c) 2008 Instituto Nokia de Tecnologia - INdT |
|---|
| 7 | 8 | * Contact: Eduardo Valentin <eduardo.valentin@nokia.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 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 67 | 58 | static int radio_si4713_querycap(struct file *file, void *priv, |
|---|
| 68 | 59 | struct v4l2_capability *capability) |
|---|
| 69 | 60 | { |
|---|
| 70 | | - strlcpy(capability->driver, "radio-si4713", sizeof(capability->driver)); |
|---|
| 71 | | - strlcpy(capability->card, "Silicon Labs Si4713 Modulator", |
|---|
| 61 | + strscpy(capability->driver, "radio-si4713", sizeof(capability->driver)); |
|---|
| 62 | + strscpy(capability->card, "Silicon Labs Si4713 Modulator", |
|---|
| 72 | 63 | sizeof(capability->card)); |
|---|
| 73 | | - strlcpy(capability->bus_info, "platform:radio-si4713", |
|---|
| 64 | + strscpy(capability->bus_info, "platform:radio-si4713", |
|---|
| 74 | 65 | sizeof(capability->bus_info)); |
|---|
| 75 | | - capability->device_caps = V4L2_CAP_MODULATOR | V4L2_CAP_RDS_OUTPUT; |
|---|
| 76 | | - capability->capabilities = capability->device_caps | V4L2_CAP_DEVICE_CAPS; |
|---|
| 77 | | - |
|---|
| 78 | 66 | return 0; |
|---|
| 79 | 67 | } |
|---|
| 80 | 68 | |
|---|
| .. | .. |
|---|
| 184 | 172 | rsdev->radio_dev.ctrl_handler = sd->ctrl_handler; |
|---|
| 185 | 173 | /* Serialize all access to the si4713 */ |
|---|
| 186 | 174 | rsdev->radio_dev.lock = &rsdev->lock; |
|---|
| 175 | + rsdev->radio_dev.device_caps = V4L2_CAP_MODULATOR | V4L2_CAP_RDS_OUTPUT; |
|---|
| 187 | 176 | video_set_drvdata(&rsdev->radio_dev, rsdev); |
|---|
| 188 | 177 | if (video_register_device(&rsdev->radio_dev, VFL_TYPE_RADIO, radio_nr)) { |
|---|
| 189 | 178 | dev_err(&pdev->dev, "Could not register video device.\n"); |
|---|