hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/sound/drivers/serial-u16550.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * serial.c
34 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>,
....@@ -6,20 +7,6 @@
67 * Hannu Savolainen
78 *
89 * This code is based on the code from ALSA 0.5.9, but heavily rewritten.
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2310 *
2411 * Sat Mar 31 17:27:57 PST 2001 tim.mann@compaq.com
2512 * Added support for the Midiator MS-124T and for the MS-124W in
....@@ -55,7 +42,7 @@
5542 #define SNDRV_SERIAL_MS124W_MB 3 /* Midiator MS-124W in M/B mode */
5643 #define SNDRV_SERIAL_GENERIC 4 /* Generic Interface */
5744 #define SNDRV_SERIAL_MAX_ADAPTOR SNDRV_SERIAL_GENERIC
58
-static char *adaptor_names[] = {
45
+static const char * const adaptor_names[] = {
5946 "Soundcanvas",
6047 "MS-124T",
6148 "MS-124W S/A",
....@@ -790,7 +777,7 @@
790777 int droponfull,
791778 struct snd_uart16550 **ruart)
792779 {
793
- static struct snd_device_ops ops = {
780
+ static const struct snd_device_ops ops = {
794781 .dev_free = snd_uart16550_dev_free,
795782 };
796783 struct snd_uart16550 *uart;