| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * serial.c |
|---|
| 3 | 4 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz>, |
|---|
| .. | .. |
|---|
| 6 | 7 | * Hannu Savolainen |
|---|
| 7 | 8 | * |
|---|
| 8 | 9 | * 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 |
|---|
| 23 | 10 | * |
|---|
| 24 | 11 | * Sat Mar 31 17:27:57 PST 2001 tim.mann@compaq.com |
|---|
| 25 | 12 | * Added support for the Midiator MS-124T and for the MS-124W in |
|---|
| .. | .. |
|---|
| 55 | 42 | #define SNDRV_SERIAL_MS124W_MB 3 /* Midiator MS-124W in M/B mode */ |
|---|
| 56 | 43 | #define SNDRV_SERIAL_GENERIC 4 /* Generic Interface */ |
|---|
| 57 | 44 | #define SNDRV_SERIAL_MAX_ADAPTOR SNDRV_SERIAL_GENERIC |
|---|
| 58 | | -static char *adaptor_names[] = { |
|---|
| 45 | +static const char * const adaptor_names[] = { |
|---|
| 59 | 46 | "Soundcanvas", |
|---|
| 60 | 47 | "MS-124T", |
|---|
| 61 | 48 | "MS-124W S/A", |
|---|
| .. | .. |
|---|
| 790 | 777 | int droponfull, |
|---|
| 791 | 778 | struct snd_uart16550 **ruart) |
|---|
| 792 | 779 | { |
|---|
| 793 | | - static struct snd_device_ops ops = { |
|---|
| 780 | + static const struct snd_device_ops ops = { |
|---|
| 794 | 781 | .dev_free = snd_uart16550_dev_free, |
|---|
| 795 | 782 | }; |
|---|
| 796 | 783 | struct snd_uart16550 *uart; |
|---|