hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/drivers/media/pci/cx18/cx18-alsa-main.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * ALSA interface to cx18 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.
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 <linux/init.h>
....@@ -112,7 +103,7 @@
112103 struct snd_card *sc = cxsc->sc;
113104
114105 /* sc->driver is used by alsa-lib's configurator: simple, unique */
115
- strlcpy(sc->driver, "CX23418", sizeof(sc->driver));
106
+ strscpy(sc->driver, "CX23418", sizeof(sc->driver));
116107
117108 /* sc->shortname is a symlink in /proc/asound: CX18-M -> cardN */
118109 snprintf(sc->shortname, sizeof(sc->shortname), "CX18-%d",