forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/sound/i2c/cs8427.c
....@@ -1,23 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Routines for control of the CS8427 via i2c bus
34 * IEC958 (S/PDIF) receiver & transmitter by Cirrus Logic
45 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
5
- *
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20
- *
216 */
227
238 #include <linux/slab.h>
....@@ -474,7 +459,7 @@
474459 return 0;
475460 }
476461
477
-static struct snd_kcontrol_new snd_cs8427_iec958_controls[] = {
462
+static const struct snd_kcontrol_new snd_cs8427_iec958_controls[] = {
478463 {
479464 .iface = SNDRV_CTL_ELEM_IFACE_PCM,
480465 .info = snd_cs8427_in_status_info,