From: Julia Lawall <Julia.Lawall@inria.fr> To: Jaroslav Kysela <perex@perex.cz> Cc: alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org, Takashi Iwai <tiwai@suse.com>, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH 02/16] ALSA: constify copied structure Date: Wed, 1 Jan 2020 08:43:20 +0100 Message-ID: <1577864614-5543-3-git-send-email-Julia.Lawall@inria.fr> (raw) In-Reply-To: <1577864614-5543-1-git-send-email-Julia.Lawall@inria.fr> 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> --- sound/pci/hda/hda_controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 | _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply index Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-01-01 7:43 [alsa-devel] [PATCH 00/16] " Julia Lawall 2020-01-01 7:43 ` [alsa-devel] [PATCH 01/16] ALSA: ad1816a: " Julia Lawall 2020-01-01 11:38 ` Takashi Iwai 2020-01-01 7:43 ` Julia Lawall [this message] 2020-01-01 11:39 ` [alsa-devel] [PATCH 02/16] ALSA: " Takashi Iwai 2020-01-01 7:43 ` [alsa-devel] [PATCH 10/16] ASoC: qdsp6: q6asm-dai: " Julia Lawall 2020-01-01 21:41 ` [alsa-devel] Applied "ASoC: qdsp6: q6asm-dai: constify copied structure" to the asoc tree Mark Brown
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1577864614-5543-3-git-send-email-Julia.Lawall@inria.fr \ --to=julia.lawall@inria.fr \ --cc=alsa-devel@alsa-project.org \ --cc=kernel-janitors@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=perex@perex.cz \ --cc=tiwai@suse.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Alsa-Devel Archive on lore.kernel.org Archives are clonable: git clone --mirror https://lore.kernel.org/alsa-devel/0 alsa-devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 alsa-devel alsa-devel/ https://lore.kernel.org/alsa-devel \ alsa-devel@alsa-project.org public-inbox-index alsa-devel Example config snippet for mirrors Newsgroup available over NNTP: nntp://nntp.lore.kernel.org/org.alsa-project.alsa-devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git