From: Bhumika Goyal <bhumirks@gmail.com> To: julia.lawall@lip6.fr, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, daniel@zonque.org, haojian.zhuang@gmail.com, robert.jarzmik@free.fr, heiko@sntech.de, krzk@kernel.org, sbkim73@samsung.com, s.nawrocki@samsung.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: Bhumika Goyal <bhumirks@gmail.com> Subject: [PATCH 2/7] ASoC: cirrus: make snd_soc_ops const Date: Wed, 16 Aug 2017 22:29:25 +0530 [thread overview] Message-ID: <1502902770-3758-3-git-send-email-bhumirks@gmail.com> (raw) In-Reply-To: <1502902770-3758-1-git-send-email-bhumirks@gmail.com> Make these const as they are only stored in the ops field of a snd_soc_dai_link structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> --- sound/soc/cirrus/edb93xx.c | 2 +- sound/soc/cirrus/snappercl15.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/cirrus/edb93xx.c b/sound/soc/cirrus/edb93xx.c index 85962657..c53bd6f 100644 --- a/sound/soc/cirrus/edb93xx.c +++ b/sound/soc/cirrus/edb93xx.c @@ -56,7 +56,7 @@ static int edb93xx_hw_params(struct snd_pcm_substream *substream, SND_SOC_CLOCK_OUT); } -static struct snd_soc_ops edb93xx_ops = { +static const struct snd_soc_ops edb93xx_ops = { .hw_params = edb93xx_hw_params, }; diff --git a/sound/soc/cirrus/snappercl15.c b/sound/soc/cirrus/snappercl15.c index 98089df..2334ec1 100644 --- a/sound/soc/cirrus/snappercl15.c +++ b/sound/soc/cirrus/snappercl15.c @@ -45,7 +45,7 @@ static int snappercl15_hw_params(struct snd_pcm_substream *substream, return 0; } -static struct snd_soc_ops snappercl15_ops = { +static const struct snd_soc_ops snappercl15_ops = { .hw_params = snappercl15_hw_params, }; -- 1.9.1
WARNING: multiple messages have this Message-ID (diff)
From: bhumirks@gmail.com (Bhumika Goyal) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/7] ASoC: cirrus: make snd_soc_ops const Date: Wed, 16 Aug 2017 22:29:25 +0530 [thread overview] Message-ID: <1502902770-3758-3-git-send-email-bhumirks@gmail.com> (raw) In-Reply-To: <1502902770-3758-1-git-send-email-bhumirks@gmail.com> Make these const as they are only stored in the ops field of a snd_soc_dai_link structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> --- sound/soc/cirrus/edb93xx.c | 2 +- sound/soc/cirrus/snappercl15.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/cirrus/edb93xx.c b/sound/soc/cirrus/edb93xx.c index 85962657..c53bd6f 100644 --- a/sound/soc/cirrus/edb93xx.c +++ b/sound/soc/cirrus/edb93xx.c @@ -56,7 +56,7 @@ static int edb93xx_hw_params(struct snd_pcm_substream *substream, SND_SOC_CLOCK_OUT); } -static struct snd_soc_ops edb93xx_ops = { +static const struct snd_soc_ops edb93xx_ops = { .hw_params = edb93xx_hw_params, }; diff --git a/sound/soc/cirrus/snappercl15.c b/sound/soc/cirrus/snappercl15.c index 98089df..2334ec1 100644 --- a/sound/soc/cirrus/snappercl15.c +++ b/sound/soc/cirrus/snappercl15.c @@ -45,7 +45,7 @@ static int snappercl15_hw_params(struct snd_pcm_substream *substream, return 0; } -static struct snd_soc_ops snappercl15_ops = { +static const struct snd_soc_ops snappercl15_ops = { .hw_params = snappercl15_hw_params, }; -- 1.9.1
next prev parent reply other threads:[~2017-08-16 17:00 UTC|newest] Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top 2017-08-16 16:59 [PATCH 0/7] ASoC: make snd_soc_ops const Bhumika Goyal 2017-08-16 16:59 ` Bhumika Goyal 2017-08-16 16:59 ` [PATCH 1/7] ASoC: aux1x: " Bhumika Goyal 2017-08-16 16:59 ` Bhumika Goyal 2017-08-17 17:13 ` Applied "ASoC: aux1x: make snd_soc_ops const" to the asoc tree Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-16 16:59 ` Bhumika Goyal [this message] 2017-08-16 16:59 ` [PATCH 2/7] ASoC: cirrus: make snd_soc_ops const Bhumika Goyal 2017-08-17 17:13 ` Applied "ASoC: cirrus: make snd_soc_ops const" to the asoc tree Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-16 16:59 ` [PATCH 3/7] ASoC: generic: make snd_soc_ops const Bhumika Goyal 2017-08-16 16:59 ` Bhumika Goyal 2017-08-17 17:13 ` Applied "ASoC: generic: make snd_soc_ops const" to the asoc tree Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-16 16:59 ` [PATCH 4/7] ASoC: pxa: make snd_soc_ops const Bhumika Goyal 2017-08-16 16:59 ` Bhumika Goyal 2017-08-16 16:59 ` [PATCH 5/7] ASoC: rockchip: " Bhumika Goyal 2017-08-16 16:59 ` Bhumika Goyal 2017-08-17 17:13 ` Applied "ASoC: rockchip: make snd_soc_ops const" to the asoc tree Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-16 16:59 ` [PATCH 6/7] ASoC: samsung: make snd_soc_ops const Bhumika Goyal 2017-08-16 16:59 ` Bhumika Goyal 2017-08-16 19:22 ` Krzysztof Kozlowski 2017-08-16 19:22 ` Krzysztof Kozlowski 2017-08-17 17:13 ` Applied "ASoC: samsung: make snd_soc_ops const" to the asoc tree Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-17 17:13 ` Mark Brown 2017-08-16 16:59 ` [PATCH 7/7] ASoC: sh: make snd_soc_ops const Bhumika Goyal 2017-08-16 16:59 ` Bhumika Goyal 2017-08-17 17:12 ` Applied "ASoC: sh: make snd_soc_ops const" to the asoc tree Mark Brown 2017-08-17 17:12 ` Mark Brown 2017-08-17 17:12 ` Mark Brown 2017-08-17 17:12 ` 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=1502902770-3758-3-git-send-email-bhumirks@gmail.com \ --to=bhumirks@gmail.com \ --cc=alsa-devel@alsa-project.org \ --cc=broonie@kernel.org \ --cc=daniel@zonque.org \ --cc=haojian.zhuang@gmail.com \ --cc=heiko@sntech.de \ --cc=julia.lawall@lip6.fr \ --cc=krzk@kernel.org \ --cc=lgirdwood@gmail.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-rockchip@lists.infradead.org \ --cc=perex@perex.cz \ --cc=robert.jarzmik@free.fr \ --cc=s.nawrocki@samsung.com \ --cc=sbkim73@samsung.com \ --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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.