.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Apple Onboard Audio driver for tas codec |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2006 Johannes Berg <johannes@sipsolutions.net> |
---|
5 | | - * |
---|
6 | | - * GPL v2, can be found in COPYING. |
---|
7 | 6 | * |
---|
8 | 7 | * Open questions: |
---|
9 | 8 | * - How to distinguish between 3004 and versions? |
---|
.. | .. |
---|
218 | 217 | return 0; |
---|
219 | 218 | } |
---|
220 | 219 | |
---|
221 | | -static struct snd_device_ops ops = { |
---|
| 220 | +static const struct snd_device_ops ops = { |
---|
222 | 221 | .dev_register = tas_dev_register, |
---|
223 | 222 | }; |
---|
224 | 223 | |
---|
.. | .. |
---|
370 | 369 | } |
---|
371 | 370 | |
---|
372 | 371 | #define MIXER_CONTROL(n,descr,idx) \ |
---|
373 | | -static struct snd_kcontrol_new n##_control = { \ |
---|
| 372 | +static const struct snd_kcontrol_new n##_control = { \ |
---|
374 | 373 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, \ |
---|
375 | 374 | .name = descr " Playback Volume", \ |
---|
376 | 375 | .access = SNDRV_CTL_ELEM_ACCESS_READWRITE, \ |
---|