From: Bhumika Goyal <bhumirks@gmail.com>
To: julia.lawall@lip6.fr, timur@tabi.org, nicoleotsuka@gmail.com,
Xiubo.Lee@gmail.com, fabio.estevam@nxp.com, lgirdwood@gmail.com,
broonie@kernel.org, perex@perex.cz, tiwai@suse.com,
plai@codeaurora.org, bgoswami@codeaurora.org,
alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org,
linux-kernel@vger.kernel.org
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH 4/6] ASoC: kirkwood: make snd_pcm_hardware const
Date: Thu, 17 Aug 2017 15:46:10 +0530 [thread overview]
Message-ID: <1502964972-22722-5-git-send-email-bhumirks@gmail.com> (raw)
In-Reply-To: <1502964972-22722-1-git-send-email-bhumirks@gmail.com>
Make this const as it is either passed as the 2nd argument
to the function snd_soc_set_runtime_hwparams, which is const or used in
a copy operation.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/kirkwood/kirkwood-dma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/kirkwood/kirkwood-dma.c b/sound/soc/kirkwood/kirkwood-dma.c
index dafd22e..cf23af1 100644
--- a/sound/soc/kirkwood/kirkwood-dma.c
+++ b/sound/soc/kirkwood/kirkwood-dma.c
@@ -27,7 +27,7 @@ static struct kirkwood_dma_data *kirkwood_priv(struct snd_pcm_substream *subs)
return snd_soc_dai_get_drvdata(soc_runtime->cpu_dai);
}
-static struct snd_pcm_hardware kirkwood_dma_snd_hw = {
+static const struct snd_pcm_hardware kirkwood_dma_snd_hw = {
.info = SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID |
--
1.9.1
next prev parent reply other threads:[~2017-08-17 10:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-17 10:16 [PATCH 0/6] ASoC: make snd_pcm_hardware const Bhumika Goyal
2017-08-17 10:16 ` [PATCH 1/6] ASoC: fsl: " Bhumika Goyal
2017-08-17 17:13 ` Applied "ASoC: fsl: make snd_pcm_hardware const" to the asoc tree Mark Brown
2017-08-18 8:11 ` [PATCH 1/6] ASoC: fsl: make snd_pcm_hardware const Nicolin Chen
2017-08-17 10:16 ` [PATCH 2/6] ASoC: Intel: Atom: " Bhumika Goyal
2017-08-17 17:13 ` Applied "ASoC: Intel: Atom: make snd_pcm_hardware const" to the asoc tree Mark Brown
2017-08-17 10:16 ` [PATCH 3/6] ASoC: Intel: Skylake: make snd_pcm_hardware const Bhumika Goyal
2017-08-17 17:13 ` Applied "ASoC: Intel: Skylake: make snd_pcm_hardware const" to the asoc tree Mark Brown
2017-08-17 10:16 ` Bhumika Goyal [this message]
2017-08-17 17:13 ` Applied "ASoC: kirkwood: " Mark Brown
2017-08-17 10:16 ` [PATCH 5/6] ASoC: sh: make snd_pcm_hardware const Bhumika Goyal
2017-08-17 17:13 ` Applied "ASoC: sh: make snd_pcm_hardware const" to the asoc tree Mark Brown
2017-08-17 10:16 ` [PATCH 6/6] ASoC: qcom: make snd_pcm_hardware const Bhumika Goyal
2017-08-17 17:13 ` Applied "ASoC: qcom: make snd_pcm_hardware const" 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=1502964972-22722-5-git-send-email-bhumirks@gmail.com \
--to=bhumirks@gmail.com \
--cc=Xiubo.Lee@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=bgoswami@codeaurora.org \
--cc=broonie@kernel.org \
--cc=fabio.estevam@nxp.com \
--cc=julia.lawall@lip6.fr \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=nicoleotsuka@gmail.com \
--cc=perex@perex.cz \
--cc=plai@codeaurora.org \
--cc=timur@tabi.org \
--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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).