From: Matthias Brugger <matthias.bgg@gmail.com>
To: Takashi Iwai <tiwai@suse.de>, Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org, Vinod Koul <vinod.koul@intel.com>,
Brian Austin <brian.austin@cirrus.com>,
Krzysztof Kozlowski <krzk@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Paul Handrigan <Paul.Handrigan@cirrus.com>
Subject: Re: [PATCH 6/7] ASoC: mediatek: Constify hw_constraints
Date: Fri, 9 Jun 2017 09:39:07 +0200 [thread overview]
Message-ID: <c9433149-34b5-b5e3-68d3-fde35bc8f18b@gmail.com> (raw)
In-Reply-To: <20170608213725.5378-7-tiwai@suse.de>
On 08/06/17 23:37, Takashi Iwai wrote:
> snd_pcm_hw_constraint_list(), *_ratnums() and *_ratdens() receive the
> const pointers. Constify the corresponding static objects for better
> hardening.
>
> Signed-off-by: Takashi Iwai <tiwai@suse.de>
> ---
> sound/soc/mediatek/mt2701/mt2701-cs42448.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/mediatek/mt2701/mt2701-cs42448.c b/sound/soc/mediatek/mt2701/mt2701-cs42448.c
> index aa5b31b121e3..70f61d53fe05 100644
> --- a/sound/soc/mediatek/mt2701/mt2701-cs42448.c
> +++ b/sound/soc/mediatek/mt2701/mt2701-cs42448.c
> @@ -107,7 +107,7 @@ static const struct snd_kcontrol_new mt2701_cs42448_controls[] = {
>
> static const unsigned int mt2701_cs42448_sampling_rates[] = {48000};
>
> -static struct snd_pcm_hw_constraint_list mt2701_cs42448_constraints_rates = {
> +static const struct snd_pcm_hw_constraint_list mt2701_cs42448_constraints_rates = {
> .count = ARRAY_SIZE(mt2701_cs42448_sampling_rates),
> .list = mt2701_cs42448_sampling_rates,
> .mask = 0,
>
Acked-By: Matthias Brugger <matthias.bgg@gmail.com>
next prev parent reply other threads:[~2017-06-09 7:39 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-08 21:37 [PATCH 0/7] ASoC: Constify hw_constraints Takashi Iwai
2017-06-08 21:37 ` [PATCH 1/7] ASoC: cs35l34: " Takashi Iwai
2017-06-13 21:08 ` Applied "ASoC: cs35l34: Constify hw_constraints" to the asoc tree Mark Brown
2017-06-08 21:37 ` [PATCH 2/7] ASoC: cs53l30: Constify hw_constraints Takashi Iwai
2017-06-13 21:08 ` Applied "ASoC: cs53l30: Constify hw_constraints" to the asoc tree Mark Brown
2017-06-08 21:37 ` [PATCH 3/7] ASoC: intel: bxt: Constify hw_constraints Takashi Iwai
2017-06-13 20:26 ` Mark Brown
2017-06-13 20:29 ` Takashi Iwai
2017-06-08 21:37 ` [PATCH 4/7] ASoC: intel: byt: " Takashi Iwai
2017-06-09 3:36 ` Vinod Koul
2017-06-13 21:08 ` Applied "ASoC: intel: byt: Constify hw_constraints" to the asoc tree Mark Brown
2017-06-08 21:37 ` [PATCH 5/7] ASoC: intel: skl: Constify hw_constraints Takashi Iwai
2017-06-09 3:36 ` Vinod Koul
2017-06-13 21:08 ` Applied "ASoC: intel: skl: Constify hw_constraints" to the asoc tree Mark Brown
2017-06-08 21:37 ` [PATCH 6/7] ASoC: mediatek: Constify hw_constraints Takashi Iwai
2017-06-09 7:39 ` Matthias Brugger [this message]
2017-06-13 21:08 ` Applied "ASoC: mediatek: Constify hw_constraints" to the asoc tree Mark Brown
2017-06-08 21:37 ` [PATCH 7/7] ASoC: samsung: Constify hw_constraints Takashi Iwai
2017-06-09 7:09 ` Krzysztof Kozlowski
2017-06-13 21:08 ` Applied "ASoC: samsung: Constify hw_constraints" 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=c9433149-34b5-b5e3-68d3-fde35bc8f18b@gmail.com \
--to=matthias.bgg@gmail.com \
--cc=Paul.Handrigan@cirrus.com \
--cc=alsa-devel@alsa-project.org \
--cc=brian.austin@cirrus.com \
--cc=broonie@kernel.org \
--cc=krzk@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=tiwai@suse.de \
--cc=vinod.koul@intel.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).