* [PATCH 1/8] ASoC: wm8350: use semicolons rather than commas to separate statements
2020-10-11 9:19 [PATCH 0/8] use semicolons rather than commas to separate statements Julia Lawall
@ 2020-10-11 9:19 ` Julia Lawall
2020-10-12 9:26 ` Charles Keepax
2020-10-11 9:19 ` [PATCH 2/8] ALSA: hda: " Julia Lawall
` (6 subsequent siblings)
7 siblings, 1 reply; 16+ messages in thread
From: Julia Lawall @ 2020-10-11 9:19 UTC (permalink / raw)
To: Liam Girdwood
Cc: alsa-devel, Valdis Klētnieks, patches, kernel-janitors,
Takashi Iwai, Mark Brown, Joe Perches, Thomas Gleixner,
linux-kernel
Replace commas with semicolons. What is done is essentially described by
the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
// <smpl>
@@ expression e1,e2; @@
e1
-,
+;
e2
... when any
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
---
sound/soc/codecs/wm8350.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c
index a6aa212fa0c8..15d42ce3b21d 100644
--- a/sound/soc/codecs/wm8350.c
+++ b/sound/soc/codecs/wm8350.c
@@ -218,7 +218,8 @@ static void wm8350_pga_work(struct work_struct *work)
/* PGA volumes have 6 bits of resolution to ramp */
for (i = 0; i <= 63; i++) {
- out1_complete = 1, out2_complete = 1;
+ out1_complete = 1;
+ out2_complete = 1;
if (out1->ramp != WM8350_RAMP_NONE)
out1_complete = wm8350_out1_ramp_step(wm8350_data);
if (out2->ramp != WM8350_RAMP_NONE)
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [PATCH 1/8] ASoC: wm8350: use semicolons rather than commas to separate statements
2020-10-11 9:19 ` [PATCH 1/8] ASoC: wm8350: " Julia Lawall
@ 2020-10-12 9:26 ` Charles Keepax
0 siblings, 0 replies; 16+ messages in thread
From: Charles Keepax @ 2020-10-12 9:26 UTC (permalink / raw)
To: Julia Lawall
Cc: alsa-devel, Valdis Klētnieks, patches, Takashi Iwai,
kernel-janitors, Liam Girdwood, Mark Brown, Joe Perches,
Thomas Gleixner, linux-kernel
On Sun, Oct 11, 2020 at 11:19:32AM +0200, Julia Lawall wrote:
> Replace commas with semicolons. What is done is essentially described by
> the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
>
> // <smpl>
> @@ expression e1,e2; @@
> e1
> -,
> +;
> e2
> ... when any
> // </smpl>
>
> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 2/8] ALSA: hda: use semicolons rather than commas to separate statements
2020-10-11 9:19 [PATCH 0/8] use semicolons rather than commas to separate statements Julia Lawall
2020-10-11 9:19 ` [PATCH 1/8] ASoC: wm8350: " Julia Lawall
@ 2020-10-11 9:19 ` Julia Lawall
2020-10-12 6:52 ` Takashi Iwai
2020-10-11 9:19 ` [PATCH 3/8] ASoC: Intel: bytcr_rt5651: " Julia Lawall
` (5 subsequent siblings)
7 siblings, 1 reply; 16+ messages in thread
From: Julia Lawall @ 2020-10-11 9:19 UTC (permalink / raw)
To: Jaroslav Kysela
Cc: alsa-devel, Valdis Klētnieks, kernel-janitors, Takashi Iwai,
linux-kernel, Joe Perches, Thomas Gleixner
Replace commas with semicolons. What is done is essentially described by
the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
// <smpl>
@@ expression e1,e2; @@
e1
-,
+;
e2
... when any
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
---
sound/pci/hda/patch_ca0132.c | 2 +-
sound/pci/hda/patch_hdmi.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c
index 9779978e4bc7..2b38b2a716a1 100644
--- a/sound/pci/hda/patch_ca0132.c
+++ b/sound/pci/hda/patch_ca0132.c
@@ -3114,7 +3114,7 @@ static int dspxfr_one_seg(struct hda_codec *codec,
}
data = fls->data;
- chip_addx = fls->chip_addr,
+ chip_addx = fls->chip_addr;
words_to_write = fls->count;
if (!words_to_write)
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 055440740184..0ffbfcb91256 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -2451,7 +2451,7 @@ static int alloc_generic_hdmi(struct hda_codec *codec)
spec->chmap.ops.get_chmap = hdmi_get_chmap;
spec->chmap.ops.set_chmap = hdmi_set_chmap;
spec->chmap.ops.is_pcm_attached = is_hdmi_pcm_attached;
- spec->chmap.ops.get_spk_alloc = hdmi_get_spk_alloc,
+ spec->chmap.ops.get_spk_alloc = hdmi_get_spk_alloc;
codec->spec = spec;
hdmi_array_init(spec, 4);
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [PATCH 2/8] ALSA: hda: use semicolons rather than commas to separate statements
2020-10-11 9:19 ` [PATCH 2/8] ALSA: hda: " Julia Lawall
@ 2020-10-12 6:52 ` Takashi Iwai
0 siblings, 0 replies; 16+ messages in thread
From: Takashi Iwai @ 2020-10-12 6:52 UTC (permalink / raw)
To: Julia Lawall
Cc: alsa-devel, Valdis Klētnieks, linux-kernel, kernel-janitors,
Takashi Iwai, Joe Perches, Thomas Gleixner
On Sun, 11 Oct 2020 11:19:33 +0200,
Julia Lawall wrote:
>
> Replace commas with semicolons. What is done is essentially described by
> the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
>
> // <smpl>
> @@ expression e1,e2; @@
> e1
> -,
> +;
> e2
> ... when any
> // </smpl>
>
> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Applied now. Thanks.
Takashi
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 3/8] ASoC: Intel: bytcr_rt5651: use semicolons rather than commas to separate statements
2020-10-11 9:19 [PATCH 0/8] use semicolons rather than commas to separate statements Julia Lawall
2020-10-11 9:19 ` [PATCH 1/8] ASoC: wm8350: " Julia Lawall
2020-10-11 9:19 ` [PATCH 2/8] ALSA: hda: " Julia Lawall
@ 2020-10-11 9:19 ` Julia Lawall
2020-10-12 7:14 ` Rojewski, Cezary
2020-10-11 9:19 ` [PATCH 4/8] ALSA: fireworks: " Julia Lawall
` (4 subsequent siblings)
7 siblings, 1 reply; 16+ messages in thread
From: Julia Lawall @ 2020-10-11 9:19 UTC (permalink / raw)
To: Cezary Rojewski
Cc: alsa-devel, Valdis Klētnieks, Jie Yang, Takashi Iwai,
kernel-janitors, Pierre-Louis Bossart, Liam Girdwood, Mark Brown,
Joe Perches, Thomas Gleixner, linux-kernel
Replace commas with semicolons. What is done is essentially described by
the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
// <smpl>
@@ expression e1,e2; @@
e1
-,
+;
e2
... when any
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
---
sound/soc/intel/boards/bytcr_rt5651.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c
index 688b5e0a49e3..64d3fc4a3225 100644
--- a/sound/soc/intel/boards/bytcr_rt5651.c
+++ b/sound/soc/intel/boards/bytcr_rt5651.c
@@ -143,7 +143,7 @@ static int byt_rt5651_prepare_and_enable_pll1(struct snd_soc_dai *codec_dai,
/* Configure the PLL before selecting it */
if (!(byt_rt5651_quirk & BYT_RT5651_MCLK_EN)) {
- clk_id = RT5651_PLL1_S_BCLK1,
+ clk_id = RT5651_PLL1_S_BCLK1;
clk_freq = rate * bclk_ratio;
} else {
clk_id = RT5651_PLL1_S_MCLK;
^ permalink raw reply related [flat|nested] 16+ messages in thread* RE: [PATCH 3/8] ASoC: Intel: bytcr_rt5651: use semicolons rather than commas to separate statements
2020-10-11 9:19 ` [PATCH 3/8] ASoC: Intel: bytcr_rt5651: " Julia Lawall
@ 2020-10-12 7:14 ` Rojewski, Cezary
0 siblings, 0 replies; 16+ messages in thread
From: Rojewski, Cezary @ 2020-10-12 7:14 UTC (permalink / raw)
To: Julia Lawall
Cc: alsa-devel@alsa-project.org, Valdis Klētnieks, Jie Yang,
Takashi Iwai, kernel-janitors@vger.kernel.org,
Pierre-Louis Bossart, Liam Girdwood, Mark Brown, Joe Perches,
Thomas Gleixner, linux-kernel@vger.kernel.org
On 2020-10-11 11:19 AM, Julia Lawall wrote:
> Replace commas with semicolons. What is done is essentially described by
> the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
>
> // <smpl>
> @@ expression e1,e2; @@
> e1
> -,
> +;
> e2
> ... when any
> // </smpl>
>
> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
>
Acked-by: Cezary Rojewski <cezary.rojewski@intel.com>
Thanks,
Czarek
> ---
> sound/soc/intel/boards/bytcr_rt5651.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c
> index 688b5e0a49e3..64d3fc4a3225 100644
> --- a/sound/soc/intel/boards/bytcr_rt5651.c
> +++ b/sound/soc/intel/boards/bytcr_rt5651.c
> @@ -143,7 +143,7 @@ static int byt_rt5651_prepare_and_enable_pll1(struct snd_soc_dai *codec_dai,
>
> /* Configure the PLL before selecting it */
> if (!(byt_rt5651_quirk & BYT_RT5651_MCLK_EN)) {
> - clk_id = RT5651_PLL1_S_BCLK1,
> + clk_id = RT5651_PLL1_S_BCLK1;
> clk_freq = rate * bclk_ratio;
> } else {
> clk_id = RT5651_PLL1_S_MCLK;
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 4/8] ALSA: fireworks: use semicolons rather than commas to separate statements
2020-10-11 9:19 [PATCH 0/8] use semicolons rather than commas to separate statements Julia Lawall
` (2 preceding siblings ...)
2020-10-11 9:19 ` [PATCH 3/8] ASoC: Intel: bytcr_rt5651: " Julia Lawall
@ 2020-10-11 9:19 ` Julia Lawall
2020-10-11 11:32 ` Takashi Sakamoto
2020-10-12 6:53 ` Takashi Iwai
2020-10-11 9:19 ` [PATCH 5/8] ASoC: SOF: Intel: hda: " Julia Lawall
` (3 subsequent siblings)
7 siblings, 2 replies; 16+ messages in thread
From: Julia Lawall @ 2020-10-11 9:19 UTC (permalink / raw)
To: Clemens Ladisch
Cc: alsa-devel, Valdis Klētnieks, linux-kernel, kernel-janitors,
Takashi Iwai, Joe Perches, Thomas Gleixner
Replace commas with semicolons. What is done is essentially described by
the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
// <smpl>
@@ expression e1,e2; @@
e1
-,
+;
e2
... when any
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
---
sound/firewire/fireworks/fireworks_pcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/firewire/fireworks/fireworks_pcm.c b/sound/firewire/fireworks/fireworks_pcm.c
index 980580dfbb39..a0d5db1d8eb2 100644
--- a/sound/firewire/fireworks/fireworks_pcm.c
+++ b/sound/firewire/fireworks/fireworks_pcm.c
@@ -148,7 +148,7 @@ pcm_init_hw_params(struct snd_efw *efw,
}
/* limit rates */
- runtime->hw.rates = efw->supported_sampling_rate,
+ runtime->hw.rates = efw->supported_sampling_rate;
snd_pcm_limit_hw_rates(runtime);
limit_channels(&runtime->hw, pcm_channels);
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [PATCH 4/8] ALSA: fireworks: use semicolons rather than commas to separate statements
2020-10-11 9:19 ` [PATCH 4/8] ALSA: fireworks: " Julia Lawall
@ 2020-10-11 11:32 ` Takashi Sakamoto
2020-10-12 6:53 ` Takashi Iwai
1 sibling, 0 replies; 16+ messages in thread
From: Takashi Sakamoto @ 2020-10-11 11:32 UTC (permalink / raw)
To: Julia Lawall
Cc: alsa-devel, Valdis Klētnieks, Clemens Ladisch,
kernel-janitors, Takashi Iwai, Joe Perches, Thomas Gleixner,
linux-kernel
Hi,
On Sun, Oct 11, 2020 at 11:19:35AM +0200, Julia Lawall wrote:
> Replace commas with semicolons. What is done is essentially described by
> the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
>
> // <smpl>
> @@ expression e1,e2; @@
> e1
> -,
> +;
> e2
> ... when any
> // </smpl>
>
> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
>
> ---
> sound/firewire/fireworks/fireworks_pcm.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/firewire/fireworks/fireworks_pcm.c b/sound/firewire/fireworks/fireworks_pcm.c
> index 980580dfbb39..a0d5db1d8eb2 100644
> --- a/sound/firewire/fireworks/fireworks_pcm.c
> +++ b/sound/firewire/fireworks/fireworks_pcm.c
> @@ -148,7 +148,7 @@ pcm_init_hw_params(struct snd_efw *efw,
> }
>
> /* limit rates */
> - runtime->hw.rates = efw->supported_sampling_rate,
> + runtime->hw.rates = efw->supported_sampling_rate;
> snd_pcm_limit_hw_rates(runtime);
>
> limit_channels(&runtime->hw, pcm_channels);
Oops. It seems to be my typo added at the commit aa02bb6e6078
("ALSA: fireworks: Add PCM interface")...
Acked-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Thanks
Takashi Sakamoto
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [PATCH 4/8] ALSA: fireworks: use semicolons rather than commas to separate statements
2020-10-11 9:19 ` [PATCH 4/8] ALSA: fireworks: " Julia Lawall
2020-10-11 11:32 ` Takashi Sakamoto
@ 2020-10-12 6:53 ` Takashi Iwai
1 sibling, 0 replies; 16+ messages in thread
From: Takashi Iwai @ 2020-10-12 6:53 UTC (permalink / raw)
To: Julia Lawall
Cc: alsa-devel, Valdis Klētnieks, Clemens Ladisch,
kernel-janitors, Takashi Iwai, Joe Perches, Thomas Gleixner,
linux-kernel
On Sun, 11 Oct 2020 11:19:35 +0200,
Julia Lawall wrote:
>
> Replace commas with semicolons. What is done is essentially described by
> the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
>
> // <smpl>
> @@ expression e1,e2; @@
> e1
> -,
> +;
> e2
> ... when any
> // </smpl>
>
> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Applied now. Thanks.
Takashi
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 5/8] ASoC: SOF: Intel: hda: use semicolons rather than commas to separate statements
2020-10-11 9:19 [PATCH 0/8] use semicolons rather than commas to separate statements Julia Lawall
` (3 preceding siblings ...)
2020-10-11 9:19 ` [PATCH 4/8] ALSA: fireworks: " Julia Lawall
@ 2020-10-11 9:19 ` Julia Lawall
2020-10-11 9:19 ` [PATCH 6/8] ASoC: samsung: snow: " Julia Lawall
` (2 subsequent siblings)
7 siblings, 0 replies; 16+ messages in thread
From: Julia Lawall @ 2020-10-11 9:19 UTC (permalink / raw)
To: Pierre-Louis Bossart
Cc: alsa-devel, Valdis Klētnieks, Kai Vehmanen, linux-kernel,
Takashi Iwai, kernel-janitors, Liam Girdwood, Ranjani Sridharan,
Mark Brown, Joe Perches, Thomas Gleixner, Daniel Baluta,
sound-open-firmware
Replace commas with semicolons. What is done is essentially described by
the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
// <smpl>
@@ expression e1,e2; @@
e1
-,
+;
e2
... when any
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
---
sound/soc/sof/intel/hda-dsp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/sof/intel/hda-dsp.c b/sound/soc/sof/intel/hda-dsp.c
index 18ff1c2f5376..2b001151fe37 100644
--- a/sound/soc/sof/intel/hda-dsp.c
+++ b/sound/soc/sof/intel/hda-dsp.c
@@ -44,7 +44,7 @@ int hda_dsp_core_reset_enter(struct snd_sof_dev *sdev, unsigned int core_mask)
reset = HDA_DSP_ADSPCS_CRST_MASK(core_mask);
snd_sof_dsp_update_bits_unlocked(sdev, HDA_DSP_BAR,
HDA_DSP_REG_ADSPCS,
- reset, reset),
+ reset, reset);
/* poll with timeout to check if operation successful */
ret = snd_sof_dsp_read_poll_timeout(sdev, HDA_DSP_BAR,
^ permalink raw reply related [flat|nested] 16+ messages in thread* [PATCH 6/8] ASoC: samsung: snow: use semicolons rather than commas to separate statements
2020-10-11 9:19 [PATCH 0/8] use semicolons rather than commas to separate statements Julia Lawall
` (4 preceding siblings ...)
2020-10-11 9:19 ` [PATCH 5/8] ASoC: SOF: Intel: hda: " Julia Lawall
@ 2020-10-11 9:19 ` Julia Lawall
2020-10-12 7:12 ` Krzysztof Kozlowski
2020-10-11 9:19 ` [PATCH 7/8] ASoC: madera: " Julia Lawall
2020-10-11 9:19 ` [PATCH 8/8] ASoC: dapm: " Julia Lawall
7 siblings, 1 reply; 16+ messages in thread
From: Julia Lawall @ 2020-10-11 9:19 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: alsa-devel, Valdis Klētnieks, Sangbeom Kim, linux-kernel,
Takashi Iwai, kernel-janitors, Liam Girdwood, Mark Brown,
Joe Perches, Thomas Gleixner
Replace commas with semicolons. What is done is essentially described by
the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
// <smpl>
@@ expression e1,e2; @@
e1
-,
+;
e2
... when any
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
---
sound/soc/samsung/snow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/samsung/snow.c b/sound/soc/samsung/snow.c
index 07163f07c6d5..989af624dd11 100644
--- a/sound/soc/samsung/snow.c
+++ b/sound/soc/samsung/snow.c
@@ -189,7 +189,7 @@ static int snow_probe(struct platform_device *pdev)
return PTR_ERR(priv->clk_i2s_bus);
}
} else {
- link->codecs->dai_name = "HiFi",
+ link->codecs->dai_name = "HiFi";
link->cpus->of_node = of_parse_phandle(dev->of_node,
"samsung,i2s-controller", 0);
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [PATCH 6/8] ASoC: samsung: snow: use semicolons rather than commas to separate statements
2020-10-11 9:19 ` [PATCH 6/8] ASoC: samsung: snow: " Julia Lawall
@ 2020-10-12 7:12 ` Krzysztof Kozlowski
0 siblings, 0 replies; 16+ messages in thread
From: Krzysztof Kozlowski @ 2020-10-12 7:12 UTC (permalink / raw)
To: Julia Lawall
Cc: alsa-devel, Valdis Klētnieks, Sangbeom Kim, linux-kernel,
Takashi Iwai, kernel-janitors, Liam Girdwood, Mark Brown,
Joe Perches, Thomas Gleixner
On Sun, Oct 11, 2020 at 11:19:37AM +0200, Julia Lawall wrote:
> Replace commas with semicolons. What is done is essentially described by
> the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
>
> // <smpl>
> @@ expression e1,e2; @@
> e1
> -,
> +;
> e2
> ... when any
> // </smpl>
>
> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
>
> ---
> sound/soc/samsung/snow.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 7/8] ASoC: madera: use semicolons rather than commas to separate statements
2020-10-11 9:19 [PATCH 0/8] use semicolons rather than commas to separate statements Julia Lawall
` (5 preceding siblings ...)
2020-10-11 9:19 ` [PATCH 6/8] ASoC: samsung: snow: " Julia Lawall
@ 2020-10-11 9:19 ` Julia Lawall
2020-10-12 9:26 ` Charles Keepax
2020-10-11 9:19 ` [PATCH 8/8] ASoC: dapm: " Julia Lawall
7 siblings, 1 reply; 16+ messages in thread
From: Julia Lawall @ 2020-10-11 9:19 UTC (permalink / raw)
To: Charles Keepax
Cc: alsa-devel, Valdis Klētnieks, patches, Takashi Iwai,
kernel-janitors, Liam Girdwood, Richard Fitzgerald, Mark Brown,
Joe Perches, Thomas Gleixner, linux-kernel
Replace commas with semicolons. What is done is essentially described by
the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
// <smpl>
@@ expression e1,e2; @@
e1
-,
+;
e2
... when any
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
---
sound/soc/codecs/madera.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/madera.c b/sound/soc/codecs/madera.c
index 680f31a6493a..f4ed7e04673f 100644
--- a/sound/soc/codecs/madera.c
+++ b/sound/soc/codecs/madera.c
@@ -3019,11 +3019,11 @@ static int madera_hw_params_rate(struct snd_pcm_substream *substream,
tar = 2 << MADERA_AIF1_RATE_SHIFT;
break;
case MADERA_CLK_ASYNCCLK_1:
- reg = MADERA_ASYNC_SAMPLE_RATE_1,
+ reg = MADERA_ASYNC_SAMPLE_RATE_1;
tar = 8 << MADERA_AIF1_RATE_SHIFT;
break;
case MADERA_CLK_ASYNCCLK_2:
- reg = MADERA_ASYNC_SAMPLE_RATE_2,
+ reg = MADERA_ASYNC_SAMPLE_RATE_2;
tar = 9 << MADERA_AIF1_RATE_SHIFT;
break;
default:
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [PATCH 7/8] ASoC: madera: use semicolons rather than commas to separate statements
2020-10-11 9:19 ` [PATCH 7/8] ASoC: madera: " Julia Lawall
@ 2020-10-12 9:26 ` Charles Keepax
0 siblings, 0 replies; 16+ messages in thread
From: Charles Keepax @ 2020-10-12 9:26 UTC (permalink / raw)
To: Julia Lawall
Cc: alsa-devel, Valdis Klētnieks, patches, Takashi Iwai,
kernel-janitors, Liam Girdwood, Richard Fitzgerald, Mark Brown,
Joe Perches, Thomas Gleixner, linux-kernel
On Sun, Oct 11, 2020 at 11:19:38AM +0200, Julia Lawall wrote:
> Replace commas with semicolons. What is done is essentially described by
> the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
>
> // <smpl>
> @@ expression e1,e2; @@
> e1
> -,
> +;
> e2
> ... when any
> // </smpl>
>
> Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
>
> ---
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Thanks,
Charles
^ permalink raw reply [flat|nested] 16+ messages in thread
* [PATCH 8/8] ASoC: dapm: use semicolons rather than commas to separate statements
2020-10-11 9:19 [PATCH 0/8] use semicolons rather than commas to separate statements Julia Lawall
` (6 preceding siblings ...)
2020-10-11 9:19 ` [PATCH 7/8] ASoC: madera: " Julia Lawall
@ 2020-10-11 9:19 ` Julia Lawall
7 siblings, 0 replies; 16+ messages in thread
From: Julia Lawall @ 2020-10-11 9:19 UTC (permalink / raw)
To: Liam Girdwood
Cc: alsa-devel, Valdis Klētnieks, linux-kernel, kernel-janitors,
Takashi Iwai, Mark Brown, Joe Perches, Thomas Gleixner
Replace commas with semicolons. What is done is essentially described by
the following Coccinelle semantic patch (http://coccinelle.lip6.fr/):
// <smpl>
@@ expression e1,e2; @@
e1
-,
+;
e2
... when any
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
---
sound/soc/soc-dapm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 3273161e2787..72c84ee2847f 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -4764,7 +4764,7 @@ void snd_soc_dapm_init(struct snd_soc_dapm_context *dapm,
if (component) {
dapm->dev = component->dev;
- dapm->idle_bias_off = !component->driver->idle_bias_on,
+ dapm->idle_bias_off = !component->driver->idle_bias_on;
dapm->suspend_bias_off = component->driver->suspend_bias_off;
} else {
dapm->dev = card->dev;
^ permalink raw reply related [flat|nested] 16+ messages in thread