Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1710847 > unrolled thread
| Started by | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| First post | 2017-08-14 13:40 +0200 |
| Last post | 2017-08-17 10:00 +0200 |
| Articles | 18 — 8 participants |
Back to article view | Back to linux.kernel
[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
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-14 13:40 +0200 |
| Subject | [PATCH 00/11] ASoC: make snd_soc_platform_driver const |
| Message-ID | <uelSV-3Ag-7@gated-at.bofh.it> |
Make snd_soc_platform_driver const. Bhumika Goyal (11): ASoC: codecs: make snd_soc_platform_driver const ASoC: Intel: make snd_soc_platform_driver const ASoC: fsl: make snd_soc_platform_driver const ASoC: nuc900: make snd_soc_platform_driver const ASoC: omap: make snd_soc_platform_driver const ASoC: pxa: make snd_soc_platform_driver const ASoC: qcom: make snd_soc_platform_driver const ASoC: samsung: make snd_soc_platform_driver const ASoC: sh: make snd_soc_platform_driver const ASoC: txx9: make snd_soc_platform_driver const ASoC: soc-utils: make snd_soc_platform_driver const 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 +- sound/soc/fsl/imx-pcm-fiq.c | 2 +- sound/soc/fsl/mpc5200_dma.c | 2 +- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 2 +- sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 +- sound/soc/intel/haswell/sst-haswell-pcm.c | 2 +- sound/soc/intel/skylake/skl-pcm.c | 2 +- sound/soc/nuc900/nuc900-pcm.c | 2 +- sound/soc/omap/omap-pcm.c | 2 +- sound/soc/pxa/mmp-pcm.c | 2 +- sound/soc/pxa/pxa2xx-pcm.c | 2 +- sound/soc/qcom/lpass-platform.c | 2 +- sound/soc/samsung/idma.c | 2 +- sound/soc/sh/dma-sh7760.c | 2 +- sound/soc/sh/fsi.c | 2 +- sound/soc/sh/rcar/core.c | 2 +- sound/soc/soc-utils.c | 2 +- sound/soc/txx9/txx9aclc.c | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) -- 1.9.1
[toc] | [next] | [standalone]
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-14 13:40 +0200 |
| Subject | [PATCH 01/11] ASoC: codecs: make snd_soc_platform_driver const |
| Message-ID | <uelSW-3Ag-17@gated-at.bofh.it> |
| In reply to | #1710847 |
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
[toc] | [prev] | [next] | [standalone]
| From | Charles Keepax <ckeepax@opensource.cirrus.com> |
|---|---|
| Date | 2017-08-15 10:20 +0200 |
| Subject | Re: [PATCH 01/11] ASoC: codecs: make snd_soc_platform_driver const |
| Message-ID | <ueFeW-7hm-1@gated-at.bofh.it> |
| In reply to | #1710848 |
On Mon, Aug 14, 2017 at 05:08:40PM +0530, Bhumika Goyal wrote: > 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> > --- For the Wolfson bits: Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> Thanks, Charles
[toc] | [prev] | [next] | [standalone]
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-14 13:40 +0200 |
| Subject | [PATCH 03/11] ASoC: fsl: make snd_soc_platform_driver const |
| Message-ID | <uelSW-3Ag-21@gated-at.bofh.it> |
| In reply to | #1710847 |
Make these const as they are only passed as the 2nd argument to the function
snd_soc_register_platform, which is of type const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/fsl/imx-pcm-fiq.c | 2 +-
sound/soc/fsl/mpc5200_dma.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c
index 92410f7..3fcc7b5 100644
--- a/sound/soc/fsl/imx-pcm-fiq.c
+++ b/sound/soc/fsl/imx-pcm-fiq.c
@@ -341,7 +341,7 @@ static void imx_pcm_fiq_free(struct snd_pcm *pcm)
imx_pcm_free(pcm);
}
-static struct snd_soc_platform_driver imx_soc_platform_fiq = {
+static const struct snd_soc_platform_driver imx_soc_platform_fiq = {
.ops = &imx_pcm_ops,
.pcm_new = imx_pcm_fiq_new,
.pcm_free = imx_pcm_fiq_free,
diff --git a/sound/soc/fsl/mpc5200_dma.c b/sound/soc/fsl/mpc5200_dma.c
index 1f7e70b..cdd848c 100644
--- a/sound/soc/fsl/mpc5200_dma.c
+++ b/sound/soc/fsl/mpc5200_dma.c
@@ -356,7 +356,7 @@ static void psc_dma_free(struct snd_pcm *pcm)
}
}
-static struct snd_soc_platform_driver mpc5200_audio_dma_platform = {
+static const struct snd_soc_platform_driver mpc5200_audio_dma_platform = {
.ops = &psc_dma_ops,
.pcm_new = &psc_dma_new,
.pcm_free = &psc_dma_free,
--
1.9.1
[toc] | [prev] | [next] | [standalone]
| From | Nicolin Chen <nicoleotsuka@gmail.com> |
|---|---|
| Date | 2017-08-14 21:20 +0200 |
| Subject | Re: [PATCH 03/11] ASoC: fsl: make snd_soc_platform_driver const |
| Message-ID | <uet45-86q-1@gated-at.bofh.it> |
| In reply to | #1710850 |
On Mon, Aug 14, 2017 at 05:08:42PM +0530, Bhumika Goyal wrote:
> Make these const as they are only passed as the 2nd argument to the function
> snd_soc_register_platform, which is of type const.
> Done using Coccinelle.
>
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Thanks
> ---
> sound/soc/fsl/imx-pcm-fiq.c | 2 +-
> sound/soc/fsl/mpc5200_dma.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sound/soc/fsl/imx-pcm-fiq.c b/sound/soc/fsl/imx-pcm-fiq.c
> index 92410f7..3fcc7b5 100644
> --- a/sound/soc/fsl/imx-pcm-fiq.c
> +++ b/sound/soc/fsl/imx-pcm-fiq.c
> @@ -341,7 +341,7 @@ static void imx_pcm_fiq_free(struct snd_pcm *pcm)
> imx_pcm_free(pcm);
> }
>
> -static struct snd_soc_platform_driver imx_soc_platform_fiq = {
> +static const struct snd_soc_platform_driver imx_soc_platform_fiq = {
> .ops = &imx_pcm_ops,
> .pcm_new = imx_pcm_fiq_new,
> .pcm_free = imx_pcm_fiq_free,
> diff --git a/sound/soc/fsl/mpc5200_dma.c b/sound/soc/fsl/mpc5200_dma.c
> index 1f7e70b..cdd848c 100644
> --- a/sound/soc/fsl/mpc5200_dma.c
> +++ b/sound/soc/fsl/mpc5200_dma.c
> @@ -356,7 +356,7 @@ static void psc_dma_free(struct snd_pcm *pcm)
> }
> }
>
> -static struct snd_soc_platform_driver mpc5200_audio_dma_platform = {
> +static const struct snd_soc_platform_driver mpc5200_audio_dma_platform = {
> .ops = &psc_dma_ops,
> .pcm_new = &psc_dma_new,
> .pcm_free = &psc_dma_free,
> --
> 1.9.1
>
[toc] | [prev] | [next] | [standalone]
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-14 13:50 +0200 |
| Subject | [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const |
| Message-ID | <uem2B-3DE-3@gated-at.bofh.it> |
| In reply to | #1710847 |
Make this const as it is only passed as the 2nd argument to the
function devm_snd_soc_register_platform, which is of type const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/omap/omap-pcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c
index 94e9ff7..1283473 100644
--- a/sound/soc/omap/omap-pcm.c
+++ b/sound/soc/omap/omap-pcm.c
@@ -243,7 +243,7 @@ static int omap_pcm_new(struct snd_soc_pcm_runtime *rtd)
return ret;
}
-static struct snd_soc_platform_driver omap_soc_platform = {
+static const struct snd_soc_platform_driver omap_soc_platform = {
.ops = &omap_pcm_ops,
.pcm_new = omap_pcm_new,
.pcm_free = omap_pcm_free_dma_buffers,
--
1.9.1
[toc] | [prev] | [next] | [standalone]
| From | Jarkko Nikula <jarkko.nikula@bitmer.com> |
|---|---|
| Date | 2017-08-15 08:50 +0200 |
| Subject | Re: [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const |
| Message-ID | <ueDPR-6jk-29@gated-at.bofh.it> |
| In reply to | #1710858 |
On Mon, Aug 14, 2017 at 05:08:44PM +0530, Bhumika Goyal wrote: > Make this const as it is only passed as the 2nd argument to the > function devm_snd_soc_register_platform, which is of type const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> > --- > sound/soc/omap/omap-pcm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
[toc] | [prev] | [next] | [standalone]
| From | Peter Ujfalusi <peter.ujfalusi@ti.com> |
|---|---|
| Date | 2017-08-15 13:00 +0200 |
| Subject | Re: [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const |
| Message-ID | <ueHJL-f7-7@gated-at.bofh.it> |
| In reply to | #1710858 |
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
On 2017-08-14 14:38, Bhumika Goyal wrote:
> Make this const as it is only passed as the 2nd argument to the
> function devm_snd_soc_register_platform, which is of type const.
> Done using Coccinelle.
>
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> ---
> sound/soc/omap/omap-pcm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/omap/omap-pcm.c b/sound/soc/omap/omap-pcm.c
> index 94e9ff7..1283473 100644
> --- a/sound/soc/omap/omap-pcm.c
> +++ b/sound/soc/omap/omap-pcm.c
> @@ -243,7 +243,7 @@ static int omap_pcm_new(struct snd_soc_pcm_runtime *rtd)
> return ret;
> }
>
> -static struct snd_soc_platform_driver omap_soc_platform = {
> +static const struct snd_soc_platform_driver omap_soc_platform = {
> .ops = &omap_pcm_ops,
> .pcm_new = omap_pcm_new,
> .pcm_free = omap_pcm_free_dma_buffers,
>
- Péter
[toc] | [prev] | [next] | [standalone]
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-14 13:50 +0200 |
| Subject | [PATCH 10/11] ASoC: txx9: make snd_soc_platform_driver const |
| Message-ID | <uem2B-3DE-5@gated-at.bofh.it> |
| In reply to | #1710847 |
Make this const as it is only passed as the 2nd argument to the function
devm_snd_soc_register_platform, which is of type const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/txx9/txx9aclc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/txx9/txx9aclc.c b/sound/soc/txx9/txx9aclc.c
index 7912bf0..7df95df 100644
--- a/sound/soc/txx9/txx9aclc.c
+++ b/sound/soc/txx9/txx9aclc.c
@@ -403,7 +403,7 @@ static int txx9aclc_pcm_remove(struct snd_soc_platform *platform)
return 0;
}
-static struct snd_soc_platform_driver txx9aclc_soc_platform = {
+static const struct snd_soc_platform_driver txx9aclc_soc_platform = {
.probe = txx9aclc_pcm_probe,
.remove = txx9aclc_pcm_remove,
.ops = &txx9aclc_pcm_ops,
--
1.9.1
[toc] | [prev] | [next] | [standalone]
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-14 13:50 +0200 |
| Subject | [PATCH 06/11] ASoC: pxa: make snd_soc_platform_driver const |
| Message-ID | <uem2C-3DE-11@gated-at.bofh.it> |
| In reply to | #1710847 |
Make these const as they are only passed as the 2nd argument to the
function devm_snd_soc_register_platform, which is of type const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/pxa/mmp-pcm.c | 2 +-
sound/soc/pxa/pxa2xx-pcm.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/pxa/mmp-pcm.c b/sound/soc/pxa/mmp-pcm.c
index 5b5f1a4..38d5999 100644
--- a/sound/soc/pxa/mmp-pcm.c
+++ b/sound/soc/pxa/mmp-pcm.c
@@ -211,7 +211,7 @@ static int mmp_pcm_new(struct snd_soc_pcm_runtime *rtd)
return ret;
}
-static struct snd_soc_platform_driver mmp_soc_platform = {
+static const struct snd_soc_platform_driver mmp_soc_platform = {
.ops = &mmp_pcm_ops,
.pcm_new = mmp_pcm_new,
.pcm_free = mmp_pcm_free_dma_buffers,
diff --git a/sound/soc/pxa/pxa2xx-pcm.c b/sound/soc/pxa/pxa2xx-pcm.c
index b51d7a0..636895a 100644
--- a/sound/soc/pxa/pxa2xx-pcm.c
+++ b/sound/soc/pxa/pxa2xx-pcm.c
@@ -84,7 +84,7 @@ static int pxa2xx_soc_pcm_new(struct snd_soc_pcm_runtime *rtd)
return ret;
}
-static struct snd_soc_platform_driver pxa2xx_soc_platform = {
+static const struct snd_soc_platform_driver pxa2xx_soc_platform = {
.ops = &pxa2xx_pcm_ops,
.pcm_new = pxa2xx_soc_pcm_new,
.pcm_free = pxa2xx_pcm_free_dma_buffers,
--
1.9.1
[toc] | [prev] | [next] | [standalone]
| From | Robert Jarzmik <robert.jarzmik@free.fr> |
|---|---|
| Date | 2017-08-23 21:40 +0200 |
| Subject | Re: [PATCH 06/11] ASoC: pxa: make snd_soc_platform_driver const |
| Message-ID | <uhJFo-4ES-25@gated-at.bofh.it> |
| In reply to | #1710862 |
Bhumika Goyal <bhumirks@gmail.com> writes: > Make these const as they are only passed as the 2nd argument to the > function devm_snd_soc_register_platform, which is of type const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> > --- > sound/soc/pxa/mmp-pcm.c | 2 +- > sound/soc/pxa/pxa2xx-pcm.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) For sound/soc/pxa/pxa2xx-pcm.c : Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Cheers. -- Robert
[toc] | [prev] | [next] | [standalone]
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-14 13:50 +0200 |
| Subject | [PATCH 04/11] ASoC: nuc900: make snd_soc_platform_driver const |
| Message-ID | <uem2C-3DE-13@gated-at.bofh.it> |
| In reply to | #1710847 |
Make this const as it is only passed as the 2nd argument to the
function devm_snd_soc_register_platform, which is of type const.
Done using Coccinelle
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/nuc900/nuc900-pcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/nuc900/nuc900-pcm.c b/sound/soc/nuc900/nuc900-pcm.c
index 2cca055..cd0486c 100644
--- a/sound/soc/nuc900/nuc900-pcm.c
+++ b/sound/soc/nuc900/nuc900-pcm.c
@@ -299,7 +299,7 @@ static int nuc900_dma_new(struct snd_soc_pcm_runtime *rtd)
return 0;
}
-static struct snd_soc_platform_driver nuc900_soc_platform = {
+static const struct snd_soc_platform_driver nuc900_soc_platform = {
.ops = &nuc900_dma_ops,
.pcm_new = nuc900_dma_new,
};
--
1.9.1
[toc] | [prev] | [next] | [standalone]
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-14 13:50 +0200 |
| Subject | [PATCH 08/11] ASoC: samsung: make snd_soc_platform_driver const |
| Message-ID | <uem2C-3DE-15@gated-at.bofh.it> |
| In reply to | #1710847 |
Make this const as it is only passed as the 2nd argument to the function
devm_snd_soc_register_platform, which is of type const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/samsung/idma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/samsung/idma.c b/sound/soc/samsung/idma.c
index 3e40815..ee16e4c 100644
--- a/sound/soc/samsung/idma.c
+++ b/sound/soc/samsung/idma.c
@@ -399,7 +399,7 @@ void idma_reg_addr_init(void __iomem *regs, dma_addr_t addr)
}
EXPORT_SYMBOL_GPL(idma_reg_addr_init);
-static struct snd_soc_platform_driver asoc_idma_platform = {
+static const struct snd_soc_platform_driver asoc_idma_platform = {
.ops = &idma_ops,
.pcm_new = idma_new,
.pcm_free = idma_free,
--
1.9.1
[toc] | [prev] | [next] | [standalone]
| From | Krzysztof Kozlowski <krzk@kernel.org> |
|---|---|
| Date | 2017-08-14 21:20 +0200 |
| Subject | Re: [PATCH 08/11] ASoC: samsung: make snd_soc_platform_driver const |
| Message-ID | <uet46-86q-15@gated-at.bofh.it> |
| In reply to | #1710864 |
On Mon, Aug 14, 2017 at 05:08:47PM +0530, Bhumika Goyal wrote: > Make this const as it is only passed as the 2nd argument to the function > devm_snd_soc_register_platform, which is of type const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> > --- > sound/soc/samsung/idma.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Best regards, Krzysztof
[toc] | [prev] | [next] | [standalone]
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-14 13:50 +0200 |
| Subject | [PATCH 11/11] ASoC: soc-utils: make snd_soc_platform_driver const |
| Message-ID | <uem2C-3DE-23@gated-at.bofh.it> |
| In reply to | #1710847 |
Make this const as it is only passed as the 2nd argument to the function
snd_soc_register_platform, which is of type const.
Done using Coccinelle
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/soc-utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c
index 644d9a9..e30aacb 100644
--- a/sound/soc/soc-utils.c
+++ b/sound/soc/soc-utils.c
@@ -284,7 +284,7 @@ static int dummy_dma_open(struct snd_pcm_substream *substream)
.ioctl = snd_pcm_lib_ioctl,
};
-static struct snd_soc_platform_driver dummy_platform = {
+static const struct snd_soc_platform_driver dummy_platform = {
.ops = &dummy_dma_ops,
};
--
1.9.1
[toc] | [prev] | [next] | [standalone]
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-14 13:50 +0200 |
| Subject | [PATCH 09/11] ASoC: sh: make snd_soc_platform_driver const |
| Message-ID | <uem2C-3DE-27@gated-at.bofh.it> |
| In reply to | #1710847 |
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/sh/dma-sh7760.c | 2 +-
sound/soc/sh/fsi.c | 2 +-
sound/soc/sh/rcar/core.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/sh/dma-sh7760.c b/sound/soc/sh/dma-sh7760.c
index 8fad444..81c7433 100644
--- a/sound/soc/sh/dma-sh7760.c
+++ b/sound/soc/sh/dma-sh7760.c
@@ -320,7 +320,7 @@ static int camelot_pcm_new(struct snd_soc_pcm_runtime *rtd)
return 0;
}
-static struct snd_soc_platform_driver sh7760_soc_platform = {
+static const struct snd_soc_platform_driver sh7760_soc_platform = {
.ops = &camelot_pcm_ops,
.pcm_new = camelot_pcm_new,
};
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
index 005b215..60bb23f 100644
--- a/sound/soc/sh/fsi.c
+++ b/sound/soc/sh/fsi.c
@@ -1818,7 +1818,7 @@ static int fsi_pcm_new(struct snd_soc_pcm_runtime *rtd)
},
};
-static struct snd_soc_platform_driver fsi_soc_platform = {
+static const struct snd_soc_platform_driver fsi_soc_platform = {
.ops = &fsi_pcm_ops,
.pcm_new = fsi_pcm_new,
};
diff --git a/sound/soc/sh/rcar/core.c b/sound/soc/sh/rcar/core.c
index 650cc28..361afc0 100644
--- a/sound/soc/sh/rcar/core.c
+++ b/sound/soc/sh/rcar/core.c
@@ -1318,7 +1318,7 @@ static int rsnd_pcm_new(struct snd_soc_pcm_runtime *rtd)
PREALLOC_BUFFER, PREALLOC_BUFFER_MAX);
}
-static struct snd_soc_platform_driver rsnd_soc_platform = {
+static const struct snd_soc_platform_driver rsnd_soc_platform = {
.ops = &rsnd_pcm_ops,
.pcm_new = rsnd_pcm_new,
};
--
1.9.1
[toc] | [prev] | [next] | [standalone]
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-14 13:50 +0200 |
| Subject | [PATCH 07/11] ASoC: qcom: make snd_soc_platform_driver const |
| Message-ID | <uem2C-3DE-31@gated-at.bofh.it> |
| In reply to | #1710847 |
Make this const as it is only passed as the 2nd argument to the
function devm_snd_soc_register_platform, which is of type const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/qcom/lpass-platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/qcom/lpass-platform.c b/sound/soc/qcom/lpass-platform.c
index 7aabf08..fb3576a 100644
--- a/sound/soc/qcom/lpass-platform.c
+++ b/sound/soc/qcom/lpass-platform.c
@@ -557,7 +557,7 @@ static void lpass_platform_pcm_free(struct snd_pcm *pcm)
}
}
-static struct snd_soc_platform_driver lpass_platform_driver = {
+static const struct snd_soc_platform_driver lpass_platform_driver = {
.pcm_new = lpass_platform_pcm_new,
.pcm_free = lpass_platform_pcm_free,
.ops = &lpass_platform_pcm_ops,
--
1.9.1
[toc] | [prev] | [next] | [standalone]
| From | Banajit Goswami <bgoswami@codeaurora.org> |
|---|---|
| Date | 2017-08-17 10:00 +0200 |
| Subject | Re: [PATCH 07/11] ASoC: qcom: make snd_soc_platform_driver const |
| Message-ID | <ufnSF-1MZ-1@gated-at.bofh.it> |
| In reply to | #1710872 |
On Mon, Aug 14, 2017 at 04:38:46AM -0700, Bhumika Goyal wrote:
> Make this const as it is only passed as the 2nd argument to the
> function devm_snd_soc_register_platform, which is of type const.
> Done using Coccinelle.
>
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Banajit Goswami <bgoswami@codeaurora.org>
> ---
> sound/soc/qcom/lpass-platform.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/qcom/lpass-platform.c
> b/sound/soc/qcom/lpass-platform.c
> index 7aabf08..fb3576a 100644
> --- a/sound/soc/qcom/lpass-platform.c
> +++ b/sound/soc/qcom/lpass-platform.c
> @@ -557,7 +557,7 @@ static void lpass_platform_pcm_free(struct snd_pcm
> *pcm)
> }
> }
>
> -static struct snd_soc_platform_driver lpass_platform_driver = {
> +static const struct snd_soc_platform_driver lpass_platform_driver = {
> .pcm_new = lpass_platform_pcm_new,
> .pcm_free = lpass_platform_pcm_free,
> .ops = &lpass_platform_pcm_ops,
> --
> 1.9.1
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web