aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/echoaudio/layla24.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-01-03 09:16:17 +0100
committerTakashi Iwai <tiwai@suse.de>2020-01-03 09:23:47 +0100
commitc1c3981fa16688e02f629a4805c9188679b132e9 (patch)
treeaceb724163990fa46fb97b73dd91f186001207d1 /sound/pci/echoaudio/layla24.c
parentALSA: hda: constify copied structure (diff)
downloadlinux-dev-c1c3981fa16688e02f629a4805c9188679b132e9.tar.xz
linux-dev-c1c3981fa16688e02f629a4805c9188679b132e9.zip
ALSA: pci: Constify snd_pcm_hardware definitions
Most of snd_pcm_hardware definitions are just copied to another object as-is, hence we can define them as const for further optimization. There should be no functional changes by this patch. Link: https://lore.kernel.org/r/20200103081714.9560-2-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/echoaudio/layla24.c')
-rw-r--r--sound/pci/echoaudio/layla24.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/echoaudio/layla24.c b/sound/pci/echoaudio/layla24.c
index 69742326f188..95c52210fb65 100644
--- a/sound/pci/echoaudio/layla24.c
+++ b/sound/pci/echoaudio/layla24.c
@@ -80,7 +80,7 @@ static const struct pci_device_id snd_echo_ids[] = {
{0,}
};
-static struct snd_pcm_hardware pcm_hardware_skel = {
+static const struct snd_pcm_hardware pcm_hardware_skel = {
.info = SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER |