From: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
To: Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org,
"Gustavo A. R. Silva" <garsilva@embeddedor.com>
Subject: [PATCH 11/12] ASoC: dwc: constify snd_soc_dai_ops structure
Date: Thu, 13 Jul 2017 15:38:43 -0500 [thread overview]
Message-ID: <b46ec58b34081fa70e5087d392e939f08488eb9c.1499974826.git.garsilva@embeddedor.com> (raw)
In-Reply-To: <cover.1499974826.git.garsilva@embeddedor.com>
This structure is only stored in the ops field of a snd_soc_dai_driver
structure. That field is declared const, so snd_soc_dai_ops structures
that have this property can be declared as const also.
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
---
sound/soc/dwc/dwc-i2s.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c
index 9160676..eebe9d3 100644
--- a/sound/soc/dwc/dwc-i2s.c
+++ b/sound/soc/dwc/dwc-i2s.c
@@ -381,7 +381,7 @@ static int dw_i2s_set_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt)
return ret;
}
-static struct snd_soc_dai_ops dw_i2s_dai_ops = {
+static const struct snd_soc_dai_ops dw_i2s_dai_ops = {
.startup = dw_i2s_startup,
.shutdown = dw_i2s_shutdown,
.hw_params = dw_i2s_hw_params,
--
2.5.0
next prev parent reply other threads:[~2017-07-13 20:38 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-13 20:37 [PATCH 00/12] constify snd_soc_dai_ops structures Gustavo A. R. Silva
2017-07-13 20:37 ` [PATCH 01/12] ASoC: cs42l42: constify snd_soc_dai_ops structure Gustavo A. R. Silva
2017-07-17 16:04 ` Applied "ASoC: cs42l42: constify snd_soc_dai_ops structure" to the asoc tree Mark Brown
2017-07-13 20:37 ` [PATCH 02/12] ASoC: rt5663: constify snd_soc_dai_ops structure Gustavo A. R. Silva
2017-07-17 16:04 ` Applied "ASoC: rt5663: constify snd_soc_dai_ops structure" to the asoc tree Mark Brown
2017-07-13 20:37 ` [PATCH 03/12] ASoC: rt5616: constify snd_soc_dai_ops structure Gustavo A. R. Silva
2017-07-17 16:04 ` Applied "ASoC: rt5616: constify snd_soc_dai_ops structure" to the asoc tree Mark Brown
2017-07-13 20:37 ` [PATCH 04/12] ASoC: msm8916-wcd-analog: constify snd_soc_dai_ops structure Gustavo A. R. Silva
2017-07-17 16:04 ` Applied "ASoC: msm8916-wcd-analog: constify snd_soc_dai_ops structure" to the asoc tree Mark Brown
2017-07-13 20:37 ` [PATCH 05/12] ASoC: max98926: constify snd_soc_dai_ops structure Gustavo A. R. Silva
2017-07-17 16:04 ` Applied "ASoC: max98926: constify snd_soc_dai_ops structure" to the asoc tree Mark Brown
2017-07-13 20:37 ` [PATCH 06/12] ASoC: rt5514: constify snd_soc_dai_ops structure Gustavo A. R. Silva
2017-07-17 16:04 ` Applied "ASoC: rt5514: constify snd_soc_dai_ops structure" to the asoc tree Mark Brown
2017-07-13 20:38 ` [PATCH 07/12] ASoC: codecs: msm8916-wcd-digital: constify snd_soc_dai_ops structure Gustavo A. R. Silva
2017-07-17 16:04 ` Applied "ASoC: codecs: msm8916-wcd-digital: constify snd_soc_dai_ops structure" to the asoc tree Mark Brown
2017-07-13 20:38 ` [PATCH 08/12] ASoC: max9867: constify snd_soc_dai_ops structure Gustavo A. R. Silva
2017-07-17 16:04 ` Applied "ASoC: max9867: constify snd_soc_dai_ops structure" to the asoc tree Mark Brown
2017-07-13 20:38 ` [PATCH 09/12] ASoC: rk3036: constify snd_soc_dai_ops structure Gustavo A. R. Silva
2017-07-17 16:04 ` Applied "ASoC: rk3036: constify snd_soc_dai_ops structure" to the asoc tree Mark Brown
2017-07-13 20:38 ` [PATCH 10/12] ASoC: hdac_hdmi: constify snd_soc_dai_ops structure Gustavo A. R. Silva
2017-07-17 16:04 ` Applied "ASoC: hdac_hdmi: constify snd_soc_dai_ops structure" to the asoc tree Mark Brown
2017-07-13 20:38 ` Gustavo A. R. Silva [this message]
2017-07-17 16:04 ` Applied "ASoC: dwc: " Mark Brown
2017-07-13 20:38 ` [PATCH 12/12] ASoC: tas5720: constify snd_soc_dai_ops structure Gustavo A. R. Silva
2017-07-17 16:04 ` Applied "ASoC: tas5720: constify snd_soc_dai_ops 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=b46ec58b34081fa70e5087d392e939f08488eb9c.1499974826.git.garsilva@embeddedor.com \
--to=garsilva@embeddedor.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
--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
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).