.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Routines for control of the TEA6330T circuit via i2c bus |
---|
3 | 4 | * Sound fader control circuit for car radios by Philips Semiconductors |
---|
4 | 5 | * 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 | | - * |
---|
21 | 6 | */ |
---|
22 | 7 | |
---|
23 | 8 | #include <linux/init.h> |
---|
.. | .. |
---|
275 | 260 | return change; |
---|
276 | 261 | } |
---|
277 | 262 | |
---|
278 | | -static struct snd_kcontrol_new snd_tea6330t_controls[] = { |
---|
| 263 | +static const struct snd_kcontrol_new snd_tea6330t_controls[] = { |
---|
279 | 264 | TEA6330T_MASTER_SWITCH("Master Playback Switch", 0), |
---|
280 | 265 | TEA6330T_MASTER_VOLUME("Master Playback Volume", 0), |
---|
281 | 266 | TEA6330T_BASS("Tone Control - Bass", 0), |
---|
.. | .. |
---|
293 | 278 | { |
---|
294 | 279 | struct snd_i2c_device *device; |
---|
295 | 280 | struct tea6330t *tea; |
---|
296 | | - struct snd_kcontrol_new *knew; |
---|
| 281 | + const struct snd_kcontrol_new *knew; |
---|
297 | 282 | unsigned int idx; |
---|
298 | 283 | int err = -ENOMEM; |
---|
299 | 284 | u8 default_treble, default_bass; |
---|