hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/media/pci/ivtv/ivtv-alsa-main.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ALSA interface to ivtv PCM capture streams
34 *
....@@ -5,16 +6,6 @@
56 * Copyright (C) 2009 Devin Heitmueller <dheitmueller@kernellabs.com>
67 *
78 * Portions of this work were sponsored by ONELAN Limited for the cx18 driver
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.
189 */
1910
2011 #include "ivtv-driver.h"
....@@ -109,7 +100,7 @@
109100 struct snd_card *sc = itvsc->sc;
110101
111102 /* sc->driver is used by alsa-lib's configurator: simple, unique */
112
- strlcpy(sc->driver, "CX2341[56]", sizeof(sc->driver));
103
+ strscpy(sc->driver, "CX2341[56]", sizeof(sc->driver));
113104
114105 /* sc->shortname is a symlink in /proc/asound: IVTV-M -> cardN */
115106 snprintf(sc->shortname, sizeof(sc->shortname), "IVTV-%d",