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 5/6] ASoC: sh: make snd_pcm_hardware const
Date: Thu, 17 Aug 2017 15:46:11 +0530 [thread overview]
Message-ID: <1502964972-22722-6-git-send-email-bhumirks@gmail.com> (raw)
In-Reply-To: <1502964972-22722-1-git-send-email-bhumirks@gmail.com>
Make these const as they are only passed as the 2nd argument to the
function snd_soc_set_runtime_hwparams, which is const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/sh/dma-sh7760.c | 2 +-
sound/soc/sh/fsi.c | 2 +-
sound/soc/sh/rcar/core.c | 2 +-
sound/soc/sh/siu_dai.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/sh/dma-sh7760.c b/sound/soc/sh/dma-sh7760.c
index 35788a6..1e7d417 100644
--- a/sound/soc/sh/dma-sh7760.c
+++ b/sound/soc/sh/dma-sh7760.c
@@ -89,7 +89,7 @@ struct camelot_pcm {
#define DMABRG_PREALLOC_BUFFER 32 * 1024
#define DMABRG_PREALLOC_BUFFER_MAX 32 * 1024
-static struct snd_pcm_hardware camelot_pcm_hardware = {
+static const struct snd_pcm_hardware camelot_pcm_hardware = {
.info = (SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER |
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
index 7cf0edb..6d3c770 100644
--- a/sound/soc/sh/fsi.c
+++ b/sound/soc/sh/fsi.c
@@ -1710,7 +1710,7 @@ static int fsi_dai_hw_params(struct snd_pcm_substream *substream,
* pcm ops
*/
-static struct snd_pcm_hardware fsi_pcm_hardware = {
+static const struct snd_pcm_hardware fsi_pcm_hardware = {
.info = SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID,
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index df39831..1071332 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -843,7 +843,7 @@ static int rsnd_soc_hw_rule_channels(struct snd_pcm_hw_params *params,
ir, &ic);
}
-static struct snd_pcm_hardware rsnd_pcm_hardware = {
+static const struct snd_pcm_hardware rsnd_pcm_hardware = {
.info = SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_MMAP |
SNDRV_PCM_INFO_MMAP_VALID,
diff --git a/sound/soc/sh/siu_dai.c b/sound/soc/sh/siu_dai.c
index 4a22aad..1605029 100644
--- a/sound/soc/sh/siu_dai.c
+++ b/sound/soc/sh/siu_dai.c
@@ -333,7 +333,7 @@ static void siu_dai_spbstop(struct siu_port *port_info)
/* API functions */
/* Playback and capture hardware properties are identical */
-static struct snd_pcm_hardware siu_dai_pcm_hw = {
+static const struct snd_pcm_hardware siu_dai_pcm_hw = {
.info = SNDRV_PCM_INFO_INTERLEAVED,
.formats = SNDRV_PCM_FMTBIT_S16,
.rates = SNDRV_PCM_RATE_8000_48000,
--
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 ` [PATCH 4/6] ASoC: kirkwood: make snd_pcm_hardware const Bhumika Goyal
2017-08-17 17:13 ` Applied "ASoC: kirkwood: 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: sh: " 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-6-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).