* [PATCH 00/11] ASoC: make snd_soc_platform_driver const
@ 2017-08-14 11:38 ` Bhumika Goyal
0 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
Cc: Bhumika Goyal
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
^ permalink raw reply [flat|nested] 42+ messages in thread
* [PATCH 00/11] ASoC: make snd_soc_platform_driver const
@ 2017-08-14 11:38 ` Bhumika Goyal
0 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply [flat|nested] 42+ messages in thread
* [PATCH 01/11] ASoC: codecs: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-14 11:38 ` Bhumika Goyal
-1 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
Cc: Bhumika Goyal
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 01/11] ASoC: codecs: make snd_soc_platform_driver const
@ 2017-08-14 11:38 ` Bhumika Goyal
0 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 02/11] ASoC: Intel: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-14 11:38 ` Bhumika Goyal
-1 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
Cc: Bhumika Goyal
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/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 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst-mfld-platform-pcm.c
index 49c7b88..b272df5 100644
--- a/sound/soc/intel/atom/sst-mfld-platform-pcm.c
+++ b/sound/soc/intel/atom/sst-mfld-platform-pcm.c
@@ -705,7 +705,7 @@ static int sst_soc_probe(struct snd_soc_platform *platform)
return sst_dsp_init_v2_dpcm(platform);
}
-static struct snd_soc_platform_driver sst_soc_platform_drv = {
+static const struct snd_soc_platform_driver sst_soc_platform_drv = {
.probe = sst_soc_probe,
.ops = &sst_platform_ops,
.compr_ops = &sst_platform_compr_ops,
diff --git a/sound/soc/intel/baytrail/sst-baytrail-pcm.c b/sound/soc/intel/baytrail/sst-baytrail-pcm.c
index 4765ad4..84cb568 100644
--- a/sound/soc/intel/baytrail/sst-baytrail-pcm.c
+++ b/sound/soc/intel/baytrail/sst-baytrail-pcm.c
@@ -395,7 +395,7 @@ static int sst_byt_pcm_remove(struct snd_soc_platform *platform)
return 0;
}
-static struct snd_soc_platform_driver byt_soc_platform = {
+static const struct snd_soc_platform_driver byt_soc_platform = {
.probe = sst_byt_pcm_probe,
.remove = sst_byt_pcm_remove,
.ops = &sst_byt_pcm_ops,
diff --git a/sound/soc/intel/haswell/sst-haswell-pcm.c b/sound/soc/intel/haswell/sst-haswell-pcm.c
index 9e4094e..c044400 100644
--- a/sound/soc/intel/haswell/sst-haswell-pcm.c
+++ b/sound/soc/intel/haswell/sst-haswell-pcm.c
@@ -1135,7 +1135,7 @@ static int hsw_pcm_remove(struct snd_soc_platform *platform)
return 0;
}
-static struct snd_soc_platform_driver hsw_soc_platform = {
+static const struct snd_soc_platform_driver hsw_soc_platform = {
.probe = hsw_pcm_probe,
.remove = hsw_pcm_remove,
.ops = &hsw_pcm_ops,
diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c
index debdaac..e98d825 100644
--- a/sound/soc/intel/skylake/skl-pcm.c
+++ b/sound/soc/intel/skylake/skl-pcm.c
@@ -1310,7 +1310,7 @@ static int skl_platform_soc_probe(struct snd_soc_platform *platform)
return 0;
}
-static struct snd_soc_platform_driver skl_platform_drv = {
+static const struct snd_soc_platform_driver skl_platform_drv = {
.probe = skl_platform_soc_probe,
.ops = &skl_platform_ops,
.pcm_new = skl_pcm_new,
--
1.9.1
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 02/11] ASoC: Intel: make snd_soc_platform_driver const
@ 2017-08-14 11:38 ` Bhumika Goyal
0 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: linux-arm-kernel
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/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 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sound/soc/intel/atom/sst-mfld-platform-pcm.c b/sound/soc/intel/atom/sst-mfld-platform-pcm.c
index 49c7b88..b272df5 100644
--- a/sound/soc/intel/atom/sst-mfld-platform-pcm.c
+++ b/sound/soc/intel/atom/sst-mfld-platform-pcm.c
@@ -705,7 +705,7 @@ static int sst_soc_probe(struct snd_soc_platform *platform)
return sst_dsp_init_v2_dpcm(platform);
}
-static struct snd_soc_platform_driver sst_soc_platform_drv = {
+static const struct snd_soc_platform_driver sst_soc_platform_drv = {
.probe = sst_soc_probe,
.ops = &sst_platform_ops,
.compr_ops = &sst_platform_compr_ops,
diff --git a/sound/soc/intel/baytrail/sst-baytrail-pcm.c b/sound/soc/intel/baytrail/sst-baytrail-pcm.c
index 4765ad4..84cb568 100644
--- a/sound/soc/intel/baytrail/sst-baytrail-pcm.c
+++ b/sound/soc/intel/baytrail/sst-baytrail-pcm.c
@@ -395,7 +395,7 @@ static int sst_byt_pcm_remove(struct snd_soc_platform *platform)
return 0;
}
-static struct snd_soc_platform_driver byt_soc_platform = {
+static const struct snd_soc_platform_driver byt_soc_platform = {
.probe = sst_byt_pcm_probe,
.remove = sst_byt_pcm_remove,
.ops = &sst_byt_pcm_ops,
diff --git a/sound/soc/intel/haswell/sst-haswell-pcm.c b/sound/soc/intel/haswell/sst-haswell-pcm.c
index 9e4094e..c044400 100644
--- a/sound/soc/intel/haswell/sst-haswell-pcm.c
+++ b/sound/soc/intel/haswell/sst-haswell-pcm.c
@@ -1135,7 +1135,7 @@ static int hsw_pcm_remove(struct snd_soc_platform *platform)
return 0;
}
-static struct snd_soc_platform_driver hsw_soc_platform = {
+static const struct snd_soc_platform_driver hsw_soc_platform = {
.probe = hsw_pcm_probe,
.remove = hsw_pcm_remove,
.ops = &hsw_pcm_ops,
diff --git a/sound/soc/intel/skylake/skl-pcm.c b/sound/soc/intel/skylake/skl-pcm.c
index debdaac..e98d825 100644
--- a/sound/soc/intel/skylake/skl-pcm.c
+++ b/sound/soc/intel/skylake/skl-pcm.c
@@ -1310,7 +1310,7 @@ static int skl_platform_soc_probe(struct snd_soc_platform *platform)
return 0;
}
-static struct snd_soc_platform_driver skl_platform_drv = {
+static const struct snd_soc_platform_driver skl_platform_drv = {
.probe = skl_platform_soc_probe,
.ops = &skl_platform_ops,
.pcm_new = skl_pcm_new,
--
1.9.1
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 03/11] ASoC: fsl: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-14 11:38 ` Bhumika Goyal
-1 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
Cc: Bhumika Goyal
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 03/11] ASoC: fsl: make snd_soc_platform_driver const
@ 2017-08-14 11:38 ` Bhumika Goyal
0 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 04/11] ASoC: nuc900: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-14 11:38 ` Bhumika Goyal
-1 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
Cc: Bhumika Goyal
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 04/11] ASoC: nuc900: make snd_soc_platform_driver const
@ 2017-08-14 11:38 ` Bhumika Goyal
0 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-14 11:38 ` Bhumika Goyal
-1 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
Cc: Bhumika Goyal
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const
@ 2017-08-14 11:38 ` Bhumika Goyal
0 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 06/11] ASoC: pxa: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-14 11:38 ` Bhumika Goyal
-1 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
Cc: Bhumika Goyal
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 06/11] ASoC: pxa: make snd_soc_platform_driver const
@ 2017-08-14 11:38 ` Bhumika Goyal
0 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 07/11] ASoC: qcom: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-14 11:38 ` Bhumika Goyal
-1 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
Cc: Bhumika Goyal
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 07/11] ASoC: qcom: make snd_soc_platform_driver const
@ 2017-08-14 11:38 ` Bhumika Goyal
0 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 08/11] ASoC: samsung: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-14 11:38 ` Bhumika Goyal
-1 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
Cc: Bhumika Goyal
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 08/11] ASoC: samsung: make snd_soc_platform_driver const
@ 2017-08-14 11:38 ` Bhumika Goyal
0 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 09/11] ASoC: sh: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-14 11:38 ` Bhumika Goyal
-1 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
Cc: Bhumika Goyal
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 09/11] ASoC: sh: make snd_soc_platform_driver const
@ 2017-08-14 11:38 ` Bhumika Goyal
0 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 10/11] ASoC: txx9: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-14 11:38 ` Bhumika Goyal
-1 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
Cc: Bhumika Goyal
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 10/11] ASoC: txx9: make snd_soc_platform_driver const
@ 2017-08-14 11:38 ` Bhumika Goyal
0 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 11/11] ASoC: soc-utils: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-14 11:38 ` Bhumika Goyal
-1 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
Cc: Bhumika Goyal
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* [PATCH 11/11] ASoC: soc-utils: make snd_soc_platform_driver const
@ 2017-08-14 11:38 ` Bhumika Goyal
0 siblings, 0 replies; 42+ messages in thread
From: Bhumika Goyal @ 2017-08-14 11:38 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 42+ messages in thread
* Re: [PATCH 08/11] ASoC: samsung: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-14 19:12 ` Krzysztof Kozlowski
-1 siblings, 0 replies; 42+ messages in thread
From: Krzysztof Kozlowski @ 2017-08-14 19:12 UTC (permalink / raw)
To: Bhumika Goyal
Cc: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
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
^ permalink raw reply [flat|nested] 42+ messages in thread
* [PATCH 08/11] ASoC: samsung: make snd_soc_platform_driver const
@ 2017-08-14 19:12 ` Krzysztof Kozlowski
0 siblings, 0 replies; 42+ messages in thread
From: Krzysztof Kozlowski @ 2017-08-14 19:12 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 03/11] ASoC: fsl: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-14 19:16 ` Nicolin Chen
-1 siblings, 0 replies; 42+ messages in thread
From: Nicolin Chen @ 2017-08-14 19:16 UTC (permalink / raw)
To: Bhumika Goyal
Cc: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, Xiubo.Lee, fabio.estevam,
yang.jie, peter.ujfalusi, jarkko.nikula, daniel, haojian.zhuang,
robert.jarzmik, plai, bgoswami, krzk, sbkim73, s.nawrocki,
alsa-devel, patches, linux-kernel, linuxppc-dev, linux-omap,
linux-arm-kernel
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
>
^ permalink raw reply [flat|nested] 42+ messages in thread
* [PATCH 03/11] ASoC: fsl: make snd_soc_platform_driver const
@ 2017-08-14 19:16 ` Nicolin Chen
0 siblings, 0 replies; 42+ messages in thread
From: Nicolin Chen @ 2017-08-14 19:16 UTC (permalink / raw)
To: linux-arm-kernel
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
>
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
(?)
@ 2017-08-15 6:05 ` Jarkko Nikula
-1 siblings, 0 replies; 42+ messages in thread
From: Jarkko Nikula @ 2017-08-15 6:05 UTC (permalink / raw)
To: Bhumika Goyal
Cc: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, daniel, haojian.zhuang,
robert.jarzmik, plai, bgoswami, krzk, sbkim73, s.nawrocki,
alsa-devel, patches, linux-kernel, linuxppc-dev, linux-omap,
linux-arm-kernel
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>
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const
@ 2017-08-15 6:05 ` Jarkko Nikula
0 siblings, 0 replies; 42+ messages in thread
From: Jarkko Nikula @ 2017-08-15 6:05 UTC (permalink / raw)
To: Bhumika Goyal
Cc: alsa-devel, bgoswami, Xiubo.Lee, yang.jie, timur, lgirdwood,
krzk, s.nawrocki, bardliao, robert.jarzmik, linux-omap, plai,
Paul.Handrigan, chiou, haojian.zhuang, nicoleotsuka,
julia.lawall, broonie, perex, linux-arm-kernel, brian.austin,
sbkim73, patches, tiwai, linux-kernel, fabio.estevam,
linuxppc-dev, daniel
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>
^ permalink raw reply [flat|nested] 42+ messages in thread
* [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const
@ 2017-08-15 6:05 ` Jarkko Nikula
0 siblings, 0 replies; 42+ messages in thread
From: Jarkko Nikula @ 2017-08-15 6:05 UTC (permalink / raw)
To: linux-arm-kernel
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>
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 01/11] ASoC: codecs: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
(?)
@ 2017-08-15 8:11 ` Charles Keepax
-1 siblings, 0 replies; 42+ messages in thread
From: Charles Keepax @ 2017-08-15 8:11 UTC (permalink / raw)
To: Bhumika Goyal
Cc: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk, sbkim73,
s.nawrocki, alsa-devel, patches, linux-kernel, linuxppc-dev,
linux-omap, linux-arm-kernel
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
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 01/11] ASoC: codecs: make snd_soc_platform_driver const
@ 2017-08-15 8:11 ` Charles Keepax
0 siblings, 0 replies; 42+ messages in thread
From: Charles Keepax @ 2017-08-15 8:11 UTC (permalink / raw)
To: Bhumika Goyal
Cc: alsa-devel, bgoswami, Xiubo.Lee, yang.jie, timur, lgirdwood,
krzk, s.nawrocki, bardliao, robert.jarzmik, linux-omap, plai,
Paul.Handrigan, chiou, haojian.zhuang, nicoleotsuka,
julia.lawall, broonie, perex, linux-arm-kernel, brian.austin,
sbkim73, patches, tiwai, linux-kernel, jarkko.nikula,
fabio.estevam, linuxppc-dev, daniel
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
^ permalink raw reply [flat|nested] 42+ messages in thread
* [PATCH 01/11] ASoC: codecs: make snd_soc_platform_driver const
@ 2017-08-15 8:11 ` Charles Keepax
0 siblings, 0 replies; 42+ messages in thread
From: Charles Keepax @ 2017-08-15 8:11 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
(?)
(?)
@ 2017-08-15 10:47 ` Peter Ujfalusi
-1 siblings, 0 replies; 42+ messages in thread
From: Peter Ujfalusi @ 2017-08-15 10:47 UTC (permalink / raw)
To: Bhumika Goyal, julia.lawall, brian.austin, Paul.Handrigan,
lgirdwood, broonie, perex, tiwai, bardliao, chiou, timur,
nicoleotsuka, Xiubo.Lee, fabio.estevam, yang.jie, jarkko.nikula,
daniel, haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk,
sbkim73, s.nawrocki, alsa-devel, patches, linux-kernel,
linuxppc-dev, linux-omap, linux-arm-kernel
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
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const
@ 2017-08-15 10:47 ` Peter Ujfalusi
0 siblings, 0 replies; 42+ messages in thread
From: Peter Ujfalusi @ 2017-08-15 10:47 UTC (permalink / raw)
To: Bhumika Goyal, julia.lawall, brian.austin, Paul.Handrigan,
lgirdwood, broonie, perex, tiwai, bardliao, chiou, timur,
nicoleotsuka, Xiubo.Lee, fabio.estevam, yang.jie, jarkko.nikula,
daniel, haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk,
sbkim73, s.nawrocki, alsa-devel, patches, linux-kernel,
linuxppc-dev, linux-omap, linux-arm-kernel
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
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const
@ 2017-08-15 10:47 ` Peter Ujfalusi
0 siblings, 0 replies; 42+ messages in thread
From: Peter Ujfalusi @ 2017-08-15 10:47 UTC (permalink / raw)
To: Bhumika Goyal, julia.lawall, brian.austin, Paul.Handrigan,
lgirdwood, broonie, perex, tiwai, bardliao, chiou, timur,
nicoleotsuka, Xiubo.Lee, fabio.estevam, yang.jie, jarkko.nikula,
daniel, haojian.zhuang, robert.jarzmik, plai, bgoswami, krzk,
sbkim73, s.nawrocki, alsa-devel, patches, linux-kernel,
linuxppc-dev, linux-omap, linux-arm-kernel
=EF=BB=BF
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Bu=
siness 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.
>=20
> 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(-)
>=20
> 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 *r=
td)
> return ret;
> }
> =20
> -static struct snd_soc_platform_driver omap_soc_platform =3D {
> +static const struct snd_soc_platform_driver omap_soc_platform =3D {
> .ops =3D &omap_pcm_ops,
> .pcm_new =3D omap_pcm_new,
> .pcm_free =3D omap_pcm_free_dma_buffers,
>=20
- P=C3=A9ter
^ permalink raw reply [flat|nested] 42+ messages in thread
* [PATCH 05/11] ASoC: omap: make snd_soc_platform_driver const
@ 2017-08-15 10:47 ` Peter Ujfalusi
0 siblings, 0 replies; 42+ messages in thread
From: Peter Ujfalusi @ 2017-08-15 10:47 UTC (permalink / raw)
To: linux-arm-kernel
?
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
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 07/11] ASoC: qcom: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-17 7:59 ` Banajit Goswami
-1 siblings, 0 replies; 42+ messages in thread
From: Banajit Goswami @ 2017-08-17 7:59 UTC (permalink / raw)
To: Bhumika Goyal
Cc: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, robert.jarzmik, plai, krzk, sbkim73, s.nawrocki,
alsa-devel, patches, linux-kernel, linuxppc-dev, linux-omap,
linux-arm-kernel
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
>
^ permalink raw reply [flat|nested] 42+ messages in thread
* [PATCH 07/11] ASoC: qcom: make snd_soc_platform_driver const
@ 2017-08-17 7:59 ` Banajit Goswami
0 siblings, 0 replies; 42+ messages in thread
From: Banajit Goswami @ 2017-08-17 7:59 UTC (permalink / raw)
To: linux-arm-kernel
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
>
^ permalink raw reply [flat|nested] 42+ messages in thread
* Re: [PATCH 06/11] ASoC: pxa: make snd_soc_platform_driver const
2017-08-14 11:38 ` Bhumika Goyal
@ 2017-08-23 19:33 ` Robert Jarzmik
-1 siblings, 0 replies; 42+ messages in thread
From: Robert Jarzmik @ 2017-08-23 19:33 UTC (permalink / raw)
To: Bhumika Goyal
Cc: julia.lawall, brian.austin, Paul.Handrigan, lgirdwood, broonie,
perex, tiwai, bardliao, chiou, timur, nicoleotsuka, Xiubo.Lee,
fabio.estevam, yang.jie, peter.ujfalusi, jarkko.nikula, daniel,
haojian.zhuang, plai, bgoswami, krzk, sbkim73, s.nawrocki,
alsa-devel, patches, linux-kernel, linuxppc-dev, linux-omap,
linux-arm-kernel
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
^ permalink raw reply [flat|nested] 42+ messages in thread
* [PATCH 06/11] ASoC: pxa: make snd_soc_platform_driver const
@ 2017-08-23 19:33 ` Robert Jarzmik
0 siblings, 0 replies; 42+ messages in thread
From: Robert Jarzmik @ 2017-08-23 19:33 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply [flat|nested] 42+ messages in thread
end of thread, other threads:[~2017-08-23 19:33 UTC | newest]
Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-14 11:38 [PATCH 00/11] ASoC: make snd_soc_platform_driver const Bhumika Goyal
2017-08-14 11:38 ` Bhumika Goyal
2017-08-14 11:38 ` [PATCH 01/11] ASoC: codecs: " Bhumika Goyal
2017-08-14 11:38 ` Bhumika Goyal
2017-08-15 8:11 ` Charles Keepax
2017-08-15 8:11 ` Charles Keepax
2017-08-15 8:11 ` Charles Keepax
2017-08-14 11:38 ` [PATCH 02/11] ASoC: Intel: " Bhumika Goyal
2017-08-14 11:38 ` Bhumika Goyal
2017-08-14 11:38 ` [PATCH 03/11] ASoC: fsl: " Bhumika Goyal
2017-08-14 11:38 ` Bhumika Goyal
2017-08-14 19:16 ` Nicolin Chen
2017-08-14 19:16 ` Nicolin Chen
2017-08-14 11:38 ` [PATCH 04/11] ASoC: nuc900: " Bhumika Goyal
2017-08-14 11:38 ` Bhumika Goyal
2017-08-14 11:38 ` [PATCH 05/11] ASoC: omap: " Bhumika Goyal
2017-08-14 11:38 ` Bhumika Goyal
2017-08-15 6:05 ` Jarkko Nikula
2017-08-15 6:05 ` Jarkko Nikula
2017-08-15 6:05 ` Jarkko Nikula
2017-08-15 10:47 ` Peter Ujfalusi
2017-08-15 10:47 ` Peter Ujfalusi
2017-08-15 10:47 ` Peter Ujfalusi
2017-08-15 10:47 ` Peter Ujfalusi
2017-08-14 11:38 ` [PATCH 06/11] ASoC: pxa: " Bhumika Goyal
2017-08-14 11:38 ` Bhumika Goyal
2017-08-23 19:33 ` Robert Jarzmik
2017-08-23 19:33 ` Robert Jarzmik
2017-08-14 11:38 ` [PATCH 07/11] ASoC: qcom: " Bhumika Goyal
2017-08-14 11:38 ` Bhumika Goyal
2017-08-17 7:59 ` Banajit Goswami
2017-08-17 7:59 ` Banajit Goswami
2017-08-14 11:38 ` [PATCH 08/11] ASoC: samsung: " Bhumika Goyal
2017-08-14 11:38 ` Bhumika Goyal
2017-08-14 19:12 ` Krzysztof Kozlowski
2017-08-14 19:12 ` Krzysztof Kozlowski
2017-08-14 11:38 ` [PATCH 09/11] ASoC: sh: " Bhumika Goyal
2017-08-14 11:38 ` Bhumika Goyal
2017-08-14 11:38 ` [PATCH 10/11] ASoC: txx9: " Bhumika Goyal
2017-08-14 11:38 ` Bhumika Goyal
2017-08-14 11:38 ` [PATCH 11/11] ASoC: soc-utils: " Bhumika Goyal
2017-08-14 11:38 ` Bhumika Goyal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.