alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/8] ASoC: alc5632: Constify struct regmap_config and snd_soc_codec_driver
@ 2015-01-05  9:18 Krzysztof Kozlowski
  2015-01-05  9:18 ` [PATCH 2/8] ASoC: cs35l32: " Krzysztof Kozlowski
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Krzysztof Kozlowski @ 2015-01-05  9:18 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	alsa-devel, linux-kernel
  Cc: Krzysztof Kozlowski

The regmap_config struct may be const because it is not modified by the
driver and regmap_init() accepts pointer to const. Make struct
snd_soc_codec_driver const as well (snd_soc_register_codec() accepts
pointer to const).

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
---
 sound/soc/codecs/alc5632.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/soc/codecs/alc5632.c b/sound/soc/codecs/alc5632.c
index d1fdbc266631..07630260e1ba 100644
--- a/sound/soc/codecs/alc5632.c
+++ b/sound/soc/codecs/alc5632.c
@@ -1066,7 +1066,7 @@ static int alc5632_probe(struct snd_soc_codec *codec)
 	return 0;
 }
 
-static struct snd_soc_codec_driver soc_codec_device_alc5632 = {
+static const struct snd_soc_codec_driver soc_codec_device_alc5632 = {
 	.probe = alc5632_probe,
 	.resume = alc5632_resume,
 	.set_bias_level = alc5632_set_bias_level,
@@ -1080,7 +1080,7 @@ static struct snd_soc_codec_driver soc_codec_device_alc5632 = {
 	.num_dapm_routes = ARRAY_SIZE(alc5632_dapm_routes),
 };
 
-static struct regmap_config alc5632_regmap = {
+static const struct regmap_config alc5632_regmap = {
 	.reg_bits = 8,
 	.val_bits = 16,
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-01-06  9:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-05  9:18 [PATCH 1/8] ASoC: alc5632: Constify struct regmap_config and snd_soc_codec_driver Krzysztof Kozlowski
2015-01-05  9:18 ` [PATCH 2/8] ASoC: cs35l32: " Krzysztof Kozlowski
2015-01-05 15:05   ` Brian Austin
2015-01-05  9:18 ` [PATCH 3/8] ASoC: cs42l52: " Krzysztof Kozlowski
2015-01-05  9:18 ` [PATCH 4/8] ASoC: cs42l56: " Krzysztof Kozlowski
2015-01-05  9:18 ` [PATCH 5/8] ASoC: cs42l73: " Krzysztof Kozlowski
2015-01-05  9:18 ` [PATCH 6/8] ASoC: wm8804: " Krzysztof Kozlowski
2015-01-06  9:13   ` Charles Keepax
2015-01-05  9:18 ` [PATCH 7/8] ASoC: wm8988: " Krzysztof Kozlowski
2015-01-06  9:13   ` Charles Keepax
2015-01-05  9:18 ` [PATCH 8/8] ASoC: wm8804: " Krzysztof Kozlowski
2015-01-06  9:14   ` Charles Keepax
2015-01-05 21:19 ` [PATCH 1/8] ASoC: alc5632: " Mark Brown

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).