Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1710848
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 01/11] ASoC: codecs: make snd_soc_platform_driver const |
| Date | 2017-08-14 13:40 +0200 |
| Message-ID | <uelSW-3Ag-17@gated-at.bofh.it> (permalink) |
| References | <uelSV-3Ag-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Make these const as they are either passed as the 2nd argument to the
function devm_snd_soc_register_platform or snd_soc_register_platform,
and the arguments are of type const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/codecs/cs47l24.c | 2 +-
sound/soc/codecs/rt5514-spi.c | 2 +-
sound/soc/codecs/wm5102.c | 2 +-
sound/soc/codecs/wm5110.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/codecs/cs47l24.c b/sound/soc/codecs/cs47l24.c
index d323caa..505dbc9 100644
--- a/sound/soc/codecs/cs47l24.c
+++ b/sound/soc/codecs/cs47l24.c
@@ -1213,7 +1213,7 @@ static struct regmap *cs47l24_get_regmap(struct device *dev)
.copy = wm_adsp_compr_copy,
};
-static struct snd_soc_platform_driver cs47l24_compr_platform = {
+static const struct snd_soc_platform_driver cs47l24_compr_platform = {
.compr_ops = &cs47l24_compr_ops,
};
diff --git a/sound/soc/codecs/rt5514-spi.c b/sound/soc/codecs/rt5514-spi.c
index 640193d..ed6e537 100644
--- a/sound/soc/codecs/rt5514-spi.c
+++ b/sound/soc/codecs/rt5514-spi.c
@@ -272,7 +272,7 @@ static int rt5514_spi_pcm_probe(struct snd_soc_platform *platform)
return 0;
}
-static struct snd_soc_platform_driver rt5514_spi_platform = {
+static const struct snd_soc_platform_driver rt5514_spi_platform = {
.probe = rt5514_spi_pcm_probe,
.ops = &rt5514_spi_pcm_ops,
};
diff --git a/sound/soc/codecs/wm5102.c b/sound/soc/codecs/wm5102.c
index 1fe358e..f500692 100644
--- a/sound/soc/codecs/wm5102.c
+++ b/sound/soc/codecs/wm5102.c
@@ -2027,7 +2027,7 @@ static struct regmap *wm5102_get_regmap(struct device *dev)
.copy = wm_adsp_compr_copy,
};
-static struct snd_soc_platform_driver wm5102_compr_platform = {
+static const struct snd_soc_platform_driver wm5102_compr_platform = {
.compr_ops = &wm5102_compr_ops,
};
diff --git a/sound/soc/codecs/wm5110.c b/sound/soc/codecs/wm5110.c
index 1bc9421..d6fae139 100644
--- a/sound/soc/codecs/wm5110.c
+++ b/sound/soc/codecs/wm5110.c
@@ -2382,7 +2382,7 @@ static struct regmap *wm5110_get_regmap(struct device *dev)
.copy = wm_adsp_compr_copy,
};
-static struct snd_soc_platform_driver wm5110_compr_platform = {
+static const struct snd_soc_platform_driver wm5110_compr_platform = {
.compr_ops = &wm5110_compr_ops,
};
--
1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 00/11] ASoC: make snd_soc_platform_driver const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-14 13:40 +0200
[PATCH 01/11] ASoC: codecs: make snd_soc_platform_driver const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-14 13:40 +0200
Re: [PATCH 01/11] ASoC: codecs: make snd_soc_platform_driver const Charles Keepax <ckeepax@opensource.cirrus.com> - 2017-08-15 10:20 +0200
[PATCH 03/11] ASoC: fsl: make snd_soc_platform_driver const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-14 13:40 +0200
Re: [PATCH 03/11] ASoC: fsl: make snd_soc_platform_driver const Nicolin Chen <nicoleotsuka@gmail.com> - 2017-08-14 21:20 +0200
[PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-14 13:50 +0200
Re: [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const Jarkko Nikula <jarkko.nikula@bitmer.com> - 2017-08-15 08:50 +0200
Re: [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const Peter Ujfalusi <peter.ujfalusi@ti.com> - 2017-08-15 13:00 +0200
[PATCH 10/11] ASoC: txx9: make snd_soc_platform_driver const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-14 13:50 +0200
[PATCH 06/11] ASoC: pxa: make snd_soc_platform_driver const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-14 13:50 +0200
Re: [PATCH 06/11] ASoC: pxa: make snd_soc_platform_driver const Robert Jarzmik <robert.jarzmik@free.fr> - 2017-08-23 21:40 +0200
[PATCH 04/11] ASoC: nuc900: make snd_soc_platform_driver const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-14 13:50 +0200
[PATCH 08/11] ASoC: samsung: make snd_soc_platform_driver const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-14 13:50 +0200
Re: [PATCH 08/11] ASoC: samsung: make snd_soc_platform_driver const Krzysztof Kozlowski <krzk@kernel.org> - 2017-08-14 21:20 +0200
[PATCH 11/11] ASoC: soc-utils: make snd_soc_platform_driver const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-14 13:50 +0200
[PATCH 09/11] ASoC: sh: make snd_soc_platform_driver const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-14 13:50 +0200
[PATCH 07/11] ASoC: qcom: make snd_soc_platform_driver const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-14 13:50 +0200
Re: [PATCH 07/11] ASoC: qcom: make snd_soc_platform_driver const Banajit Goswami <bgoswami@codeaurora.org> - 2017-08-17 10:00 +0200
csiph-web