diff options
author | Julia Lawall <Julia.Lawall@inria.fr> | 2020-01-01 08:43:20 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-01-01 12:39:27 +0100 |
commit | c56fc8c9ad7a8693a9c07a39fd3081576f908fea (patch) | |
tree | bf7f46e0d4415db0cc45121d04f10155835874ac | |
parent | cb5b83580c6101ce3c7de4640ecc7f1ca6e006bf (diff) | |
download | linux-stable-c56fc8c9ad7a8693a9c07a39fd3081576f908fea.tar.gz linux-stable-c56fc8c9ad7a8693a9c07a39fd3081576f908fea.tar.bz2 linux-stable-c56fc8c9ad7a8693a9c07a39fd3081576f908fea.zip |
ALSA: hda: constify copied structure
The azx_pcm_hw structure is only copied into another structure,
so make it const.
The opportunity for this change was found using Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Link: https://lore.kernel.org/r/1577864614-5543-3-git-send-email-Julia.Lawall@inria.fr
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/hda_controller.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c index a74c85867eb3..9757667cdd58 100644 --- a/sound/pci/hda/hda_controller.c +++ b/sound/pci/hda/hda_controller.c @@ -548,7 +548,7 @@ static int azx_get_time_info(struct snd_pcm_substream *substream, return 0; } -static struct snd_pcm_hardware azx_pcm_hw = { +static const struct snd_pcm_hardware azx_pcm_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | |