From: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
To: linux-kernel@vger.kernel.org
Cc: "Gustavo A. R. Silva" <garsilva@embeddedor.com>
Subject: [PATCH 06/12] ASoC: rt5514: constify snd_soc_dai_ops structure
Date: Thu, 13 Jul 2017 15:42:00 -0500 [thread overview]
Message-ID: <274b7cfa762e8c933bedc09d2f7b8e775ccde02c.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.
Also, make rt5514_aif_dai_ops static, as it is not used outside this
module.
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
---
sound/soc/codecs/rt5514.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/rt5514.c b/sound/soc/codecs/rt5514.c
index a71e630..4ca73bf 100644
--- a/sound/soc/codecs/rt5514.c
+++ b/sound/soc/codecs/rt5514.c
@@ -1006,7 +1006,7 @@ static int rt5514_i2c_write(void *context, unsigned int reg, unsigned int val)
#define RT5514_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S8)
-struct snd_soc_dai_ops rt5514_aif_dai_ops = {
+static const struct snd_soc_dai_ops rt5514_aif_dai_ops = {
.hw_params = rt5514_hw_params,
.set_fmt = rt5514_set_dai_fmt,
.set_sysclk = rt5514_set_dai_sysclk,
--
2.5.0
prev parent reply other threads:[~2017-07-13 20:42 UTC|newest]
Thread overview: 13+ 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-13 20:37 ` [PATCH 02/12] ASoC: rt5663: " Gustavo A. R. Silva
2017-07-13 20:37 ` [PATCH 03/12] ASoC: rt5616: " Gustavo A. R. Silva
2017-07-13 20:37 ` [PATCH 04/12] ASoC: msm8916-wcd-analog: " Gustavo A. R. Silva
2017-07-13 20:37 ` [PATCH 05/12] ASoC: max98926: " Gustavo A. R. Silva
2017-07-13 20:38 ` [PATCH 07/12] ASoC: codecs: msm8916-wcd-digital: " Gustavo A. R. Silva
2017-07-13 20:38 ` [PATCH 08/12] ASoC: max9867: " Gustavo A. R. Silva
2017-07-13 20:38 ` [PATCH 09/12] ASoC: rk3036: " Gustavo A. R. Silva
2017-07-13 20:38 ` [PATCH 10/12] ASoC: hdac_hdmi: " Gustavo A. R. Silva
2017-07-13 20:38 ` [PATCH 11/12] ASoC: dwc: " Gustavo A. R. Silva
2017-07-13 20:38 ` [PATCH 12/12] ASoC: tas5720: " Gustavo A. R. Silva
2017-07-13 20:42 ` Gustavo A. R. Silva [this message]
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=274b7cfa762e8c933bedc09d2f7b8e775ccde02c.1499974826.git.garsilva@embeddedor.com \
--to=garsilva@embeddedor.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®