alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
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 08/12] ASoC: max9867: constify snd_soc_dai_ops structure
Date: Thu, 13 Jul 2017 15:38:26 -0500	[thread overview]
Message-ID: <d32f4b33d6f8fe1a88c40331c76e0886ae59d6ad.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/max9867.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c
index 2a40a69..3e421e9 100644
--- a/sound/soc/codecs/max9867.c
+++ b/sound/soc/codecs/max9867.c
@@ -350,7 +350,7 @@ static int max9867_dai_set_fmt(struct snd_soc_dai *codec_dai,
 	return 0;
 }
 
-static struct snd_soc_dai_ops max9867_dai_ops = {
+static const struct snd_soc_dai_ops max9867_dai_ops = {
 	.set_fmt = max9867_dai_set_fmt,
 	.set_sysclk	= max9867_set_dai_sysclk,
 	.prepare	= max9867_prepare,
-- 
2.5.0

  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 ` Gustavo A. R. Silva [this message]
2017-07-17 16:04   ` Applied "ASoC: max9867: " 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 ` [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=d32f4b33d6f8fe1a88c40331c76e0886ae59d6ad.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).