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 10/12] ASoC: hdac_hdmi: constify snd_soc_dai_ops structure Date: Thu, 13 Jul 2017 15:38:38 -0500 [thread overview] Message-ID: <f8993aaa6db0fcd64aab7672da799fe4ef74966e.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/codecs/hdac_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c index bc2e74f..e6de50a 100644 --- a/sound/soc/codecs/hdac_hdmi.c +++ b/sound/soc/codecs/hdac_hdmi.c @@ -1360,7 +1360,7 @@ static void hdac_hdmi_skl_enable_dp12(struct hdac_device *hdac) } -static struct snd_soc_dai_ops hdmi_dai_ops = { +static const struct snd_soc_dai_ops hdmi_dai_ops = { .startup = hdac_hdmi_pcm_open, .shutdown = hdac_hdmi_pcm_close, .hw_params = hdac_hdmi_set_hw_params, -- 2.5.0
WARNING: multiple messages have this Message-ID (diff)
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, "Gustavo A. R. Silva" <garsilva@embeddedor.com>, linux-kernel@vger.kernel.org Subject: [PATCH 10/12] ASoC: hdac_hdmi: constify snd_soc_dai_ops structure Date: Thu, 13 Jul 2017 15:38:38 -0500 [thread overview] Message-ID: <f8993aaa6db0fcd64aab7672da799fe4ef74966e.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/codecs/hdac_hdmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c index bc2e74f..e6de50a 100644 --- a/sound/soc/codecs/hdac_hdmi.c +++ b/sound/soc/codecs/hdac_hdmi.c @@ -1360,7 +1360,7 @@ static void hdac_hdmi_skl_enable_dp12(struct hdac_device *hdac) } -static struct snd_soc_dai_ops hdmi_dai_ops = { +static const struct snd_soc_dai_ops hdmi_dai_ops = { .startup = hdac_hdmi_pcm_open, .shutdown = hdac_hdmi_pcm_close, .hw_params = hdac_hdmi_set_hw_params, -- 2.5.0
next prev parent reply other threads:[~2017-07-13 20:40 UTC|newest] Thread overview: 29+ 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 ` 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-13 20:37 ` 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-13 20:42 ` 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 ` Gustavo A. R. Silva [this message] 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 ` [PATCH 11/12] ASoC: dwc: constify snd_soc_dai_ops structure Gustavo A. R. Silva 2017-07-17 16:04 ` Applied "ASoC: dwc: constify snd_soc_dai_ops structure" to the asoc tree 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=f8993aaa6db0fcd64aab7672da799fe4ef74966e.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: 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.