ASoC: max98373: Changed SPDX header in C++ comments style
PATCH 1/4 ASoC: max98373: Changed SPDX header in C++ comments style
---
Changelog:
Changed SPDX header in C comment-style to C++ comment-style
sound/soc/codecs/max98373.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/max98373.c +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2017, Maxim Integrated */ #include <linux/acpi.h>
Signature · 1 line
2.7.4
PATCH 2/4 ASoC: max98373: Added missing blank lines
---
Changelog:
Added missing blank line into two places.
sound/soc/codecs/max98373.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/codecs/max98373.c +2 -0
@@ -176,6 +176,7 @@ static int max98373_get_bclk_sel(int bclk) }return 0 ; } +static int max98373_set_clock (struct snd_soc_codec *codec,struct snd_pcm_hw_params *params) {
@@ -270,6 +271,7 @@ static int max98373_dai_hw_params(struct snd_pcm_substream *substream, params_rate(params)); goto err; } +/* set DAI_SR to correct LRCLK frequency */ regmap_update_bits(max98373->regmap, MAX98373_R2027_PCM_SR_SETUP_1,
Signature · 1 line
2.7.4
Mark Brown
maintainerApplied "ASoC: max98373: Added missing blank lines" to the asoc tree
The patch
ASoC: max98373: Added missing blank lines
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
e1053262cf318a2bb4a0e1e9c402a3033c669381Mon Sep 17 00:00:00 2001
From: Ryan Lee <[email protected]>
Date: Tue, 9 Jan 2018 21:01:59 -0800
Subject: [PATCH] ASoC: max98373: Added missing blank lines
--- sound/soc/codecs/max98373.c | 2 ++ 1 file changed, 2 insertions(+)
sound/soc/codecs/max98373.c +2 -0
@@ -176,6 +176,7 @@ static int max98373_get_bclk_sel(int bclk) }return 0 ; } +static int max98373_set_clock (struct snd_soc_codec *codec,struct snd_pcm_hw_params *params) {
@@ -270,6 +271,7 @@ static int max98373_dai_hw_params(struct snd_pcm_substream *substream, params_rate(params)); goto err; } +/* set DAI_SR to correct LRCLK frequency */ regmap_update_bits(max98373->regmap, MAX98373_R2027_PCM_SR_SETUP_1,
Signature · 1 line
2.15.1
PATCH 3/4 ASoC: max98373: Added TDM off if parameters are all zeroes
In reply to Ryan Lee---
Changelog:
Added tdm_mode off condition when all input parameters are zero
sound/soc/codecs/max98373.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
sound/soc/codecs/max98373.c +4 -1
@@ -311,7 +311,10 @@ static int max98373_dai_tdm_slot(struct snd_soc_dai *dai,unsigned int mask;int x, slot_found; - max98373->tdm_mode = true; +if (!tx_mask && !rx_mask && !slots && !slot_width) + max98373->tdm_mode = false; +else + max98373->tdm_mode = true;/* BCLK configuration */ bsel =max98373_get_bclk_sel (slots * slot_width);
Signature · 1 line
2.7.4
Mark Brown
maintainerApplied "ASoC: max98373: Added TDM off if parameters are all zeroes" to the asoc tree
The patch
ASoC: max98373: Added TDM off if parameters are all zeroes
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
3831a5b87ff87a31dba2f212bcecd4f2b8c7c6d4Mon Sep 17 00:00:00 2001
From: Ryan Lee <[email protected]>
Date: Tue, 9 Jan 2018 21:02:00 -0800
Subject: [PATCH] ASoC: max98373: Added TDM off if parameters are all zeroes
--- sound/soc/codecs/max98373.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
sound/soc/codecs/max98373.c +4 -1
@@ -311,7 +311,10 @@ static int max98373_dai_tdm_slot(struct snd_soc_dai *dai,unsigned int mask;int x, slot_found; - max98373->tdm_mode = true; +if (!tx_mask && !rx_mask && !slots && !slot_width) + max98373->tdm_mode = false; +else + max98373->tdm_mode = true;/* BCLK configuration */ bsel =max98373_get_bclk_sel (slots * slot_width);
Signature · 1 line
2.15.1
PATCH 4/4 ASoC: max98373: Modified control names for TLV controls
In reply to Ryan Lee---
Changelog:
Added suffix - 'Volume' to all TLV controls.
sound/soc/codecs/max98373.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-)
sound/soc/codecs/max98373.c +17 -17
@@ -611,13 +611,13 @@ SOC_ENUM("Output Voltage", max98373_out_volt_enum),/* Dynamic Headroom Tracking */ SOC_SINGLE ("DHT Switch" ,MAX98373_R20D4_DHT_EN ,MAX98373_DHT_EN_SHIFT ,1 ,0 ), -SOC_SINGLE_TLV ("DHT Gain Min" ,MAX98373_R20D1_DHT_CFG , +SOC_SINGLE_TLV ("DHT Min Volume" ,MAX98373_R20D1_DHT_CFG ,MAX98373_DHT_SPK_GAIN_MIN_SHIFT ,9 ,0 , max98373_dht_spkgain_min_tlv), -SOC_SINGLE_TLV ("DHT Rot Pnt" ,MAX98373_R20D1_DHT_CFG , +SOC_SINGLE_TLV ("DHT Rot Pnt Volume" ,MAX98373_R20D1_DHT_CFG ,MAX98373_DHT_ROT_PNT_SHIFT ,15 ,0 , max98373_dht_rotation_point_tlv), -SOC_SINGLE_TLV ("DHT Attack Step" ,MAX98373_R20D2_DHT_ATTACK_CFG , +SOC_SINGLE_TLV ("DHT Attack Step Volume" ,MAX98373_R20D2_DHT_ATTACK_CFG ,MAX98373_DHT_ATTACK_STEP_SHIFT ,4 ,0 , max98373_dht_step_size_tlv), -SOC_SINGLE_TLV ("DHT Release Step" ,MAX98373_R20D3_DHT_RELEASE_CFG , +SOC_SINGLE_TLV ("DHT Release Step Volume" ,MAX98373_R20D3_DHT_RELEASE_CFG ,MAX98373_DHT_RELEASE_STEP_SHIFT ,4 ,0 , max98373_dht_step_size_tlv),SOC_ENUM ("DHT Attack Rate" , max98373_dht_attack_rate_enum), SOC_ENUM("DHT Release Rate", max98373_dht_release_rate_enum),
@@ -650,36 +650,36 @@ SOC_SINGLE("BDE Thresh Hysteresis", MAX98373_R209B_BDE_THRESH_HYST, 0, 0xFF, 0),SOC_SINGLE ("BDE Hold Time" ,MAX98373_R2090_BDE_LVL_HOLD ,0 ,0xFF ,0 ),SOC_SINGLE ("BDE Attack Rate" ,MAX98373_R2091_BDE_GAIN_ATK_REL_RATE ,4 ,0xF ,0 ),SOC_SINGLE ("BDE Release Rate" ,MAX98373_R2091_BDE_GAIN_ATK_REL_RATE ,0 ,0xF ,0 ), -SOC_SINGLE_TLV ("BDE LVL1 Clip Thresh" ,MAX98373_R20A9_BDE_L1_CFG_2 , +SOC_SINGLE_TLV ("BDE LVL1 Clip Thresh Volume" ,MAX98373_R20A9_BDE_L1_CFG_2 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL2 Clip Thresh" ,MAX98373_R20AC_BDE_L2_CFG_2 , +SOC_SINGLE_TLV ("BDE LVL2 Clip Thresh Volume" ,MAX98373_R20AC_BDE_L2_CFG_2 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL3 Clip Thresh" ,MAX98373_R20AF_BDE_L3_CFG_2 , +SOC_SINGLE_TLV ("BDE LVL3 Clip Thresh Volume" ,MAX98373_R20AF_BDE_L3_CFG_2 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL4 Clip Thresh" ,MAX98373_R20B2_BDE_L4_CFG_2 , +SOC_SINGLE_TLV ("BDE LVL4 Clip Thresh Volume" ,MAX98373_R20B2_BDE_L4_CFG_2 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL1 Clip Gain Reduct" ,MAX98373_R20AA_BDE_L1_CFG_3 , +SOC_SINGLE_TLV ("BDE LVL1 Clip Reduction Volume" ,MAX98373_R20AA_BDE_L1_CFG_3 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL2 Clip Gain Reduct" ,MAX98373_R20AD_BDE_L2_CFG_3 , +SOC_SINGLE_TLV ("BDE LVL2 Clip Reduction Volume" ,MAX98373_R20AD_BDE_L2_CFG_3 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL3 Clip Gain Reduct" ,MAX98373_R20B0_BDE_L3_CFG_3 , +SOC_SINGLE_TLV ("BDE LVL3 Clip Reduction Volume" ,MAX98373_R20B0_BDE_L3_CFG_3 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL4 Clip Gain Reduct" ,MAX98373_R20B3_BDE_L4_CFG_3 , +SOC_SINGLE_TLV ("BDE LVL4 Clip Reduction Volume" ,MAX98373_R20B3_BDE_L4_CFG_3 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL1 Limiter Thresh" ,MAX98373_R20A8_BDE_L1_CFG_1 , +SOC_SINGLE_TLV ("BDE LVL1 Limiter Thresh Volume" ,MAX98373_R20A8_BDE_L1_CFG_1 ,0 ,0xF ,0 , max98373_limiter_thresh_tlv), -SOC_SINGLE_TLV ("BDE LVL2 Limiter Thresh" ,MAX98373_R20AB_BDE_L2_CFG_1 , +SOC_SINGLE_TLV ("BDE LVL2 Limiter Thresh Volume" ,MAX98373_R20AB_BDE_L2_CFG_1 ,0 ,0xF ,0 , max98373_limiter_thresh_tlv), -SOC_SINGLE_TLV ("BDE LVL3 Limiter Thresh" ,MAX98373_R20AE_BDE_L3_CFG_1 , +SOC_SINGLE_TLV ("BDE LVL3 Limiter Thresh Volume" ,MAX98373_R20AE_BDE_L3_CFG_1 ,0 ,0xF ,0 , max98373_limiter_thresh_tlv), -SOC_SINGLE_TLV ("BDE LVL4 Limiter Thresh" ,MAX98373_R20B1_BDE_L4_CFG_1 , +SOC_SINGLE_TLV ("BDE LVL4 Limiter Thresh Volume" ,MAX98373_R20B1_BDE_L4_CFG_1 ,0 ,0xF ,0 , max98373_limiter_thresh_tlv),/* Limiter */ SOC_SINGLE ("Limiter Switch" ,MAX98373_R20E2_LIMITER_EN ,MAX98373_LIMITER_EN_SHIFT ,1 ,0 ),SOC_SINGLE ("Limiter Src Switch" ,MAX98373_R20E0_LIMITER_THRESH_CFG ,MAX98373_LIMITER_THRESH_SRC_SHIFT ,1 ,0 ), -SOC_SINGLE_TLV ("Limiter Thresh" ,MAX98373_R20E0_LIMITER_THRESH_CFG , +SOC_SINGLE_TLV ("Limiter Thresh Volume" ,MAX98373_R20E0_LIMITER_THRESH_CFG ,MAX98373_LIMITER_THRESH_SHIFT ,15 ,0 , max98373_limiter_thresh_tlv),SOC_ENUM ("Limiter Attack Rate" , max98373_limiter_attack_rate_enum), SOC_ENUM("Limiter Release Rate", max98373_limiter_release_rate_enum),
Signature · 1 line
2.7.4
Mark Brown
maintainerApplied "ASoC: max98373: Modified control names for TLV controls" to the asoc tree
The patch
ASoC: max98373: Modified control names for TLV controls
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
b6158323bbe706416f8f13912879a429be5cc2a9Mon Sep 17 00:00:00 2001
From: Ryan Lee <[email protected]>
Date: Tue, 9 Jan 2018 21:02:01 -0800
Subject: [PATCH] ASoC: max98373: Modified control names for TLV controls
--- sound/soc/codecs/max98373.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-)
sound/soc/codecs/max98373.c +17 -17
@@ -611,13 +611,13 @@ SOC_ENUM("Output Voltage", max98373_out_volt_enum),/* Dynamic Headroom Tracking */ SOC_SINGLE ("DHT Switch" ,MAX98373_R20D4_DHT_EN ,MAX98373_DHT_EN_SHIFT ,1 ,0 ), -SOC_SINGLE_TLV ("DHT Gain Min" ,MAX98373_R20D1_DHT_CFG , +SOC_SINGLE_TLV ("DHT Min Volume" ,MAX98373_R20D1_DHT_CFG ,MAX98373_DHT_SPK_GAIN_MIN_SHIFT ,9 ,0 , max98373_dht_spkgain_min_tlv), -SOC_SINGLE_TLV ("DHT Rot Pnt" ,MAX98373_R20D1_DHT_CFG , +SOC_SINGLE_TLV ("DHT Rot Pnt Volume" ,MAX98373_R20D1_DHT_CFG ,MAX98373_DHT_ROT_PNT_SHIFT ,15 ,0 , max98373_dht_rotation_point_tlv), -SOC_SINGLE_TLV ("DHT Attack Step" ,MAX98373_R20D2_DHT_ATTACK_CFG , +SOC_SINGLE_TLV ("DHT Attack Step Volume" ,MAX98373_R20D2_DHT_ATTACK_CFG ,MAX98373_DHT_ATTACK_STEP_SHIFT ,4 ,0 , max98373_dht_step_size_tlv), -SOC_SINGLE_TLV ("DHT Release Step" ,MAX98373_R20D3_DHT_RELEASE_CFG , +SOC_SINGLE_TLV ("DHT Release Step Volume" ,MAX98373_R20D3_DHT_RELEASE_CFG ,MAX98373_DHT_RELEASE_STEP_SHIFT ,4 ,0 , max98373_dht_step_size_tlv),SOC_ENUM ("DHT Attack Rate" , max98373_dht_attack_rate_enum), SOC_ENUM("DHT Release Rate", max98373_dht_release_rate_enum),
@@ -650,36 +650,36 @@ SOC_SINGLE("BDE Thresh Hysteresis", MAX98373_R209B_BDE_THRESH_HYST, 0, 0xFF, 0),SOC_SINGLE ("BDE Hold Time" ,MAX98373_R2090_BDE_LVL_HOLD ,0 ,0xFF ,0 ),SOC_SINGLE ("BDE Attack Rate" ,MAX98373_R2091_BDE_GAIN_ATK_REL_RATE ,4 ,0xF ,0 ),SOC_SINGLE ("BDE Release Rate" ,MAX98373_R2091_BDE_GAIN_ATK_REL_RATE ,0 ,0xF ,0 ), -SOC_SINGLE_TLV ("BDE LVL1 Clip Thresh" ,MAX98373_R20A9_BDE_L1_CFG_2 , +SOC_SINGLE_TLV ("BDE LVL1 Clip Thresh Volume" ,MAX98373_R20A9_BDE_L1_CFG_2 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL2 Clip Thresh" ,MAX98373_R20AC_BDE_L2_CFG_2 , +SOC_SINGLE_TLV ("BDE LVL2 Clip Thresh Volume" ,MAX98373_R20AC_BDE_L2_CFG_2 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL3 Clip Thresh" ,MAX98373_R20AF_BDE_L3_CFG_2 , +SOC_SINGLE_TLV ("BDE LVL3 Clip Thresh Volume" ,MAX98373_R20AF_BDE_L3_CFG_2 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL4 Clip Thresh" ,MAX98373_R20B2_BDE_L4_CFG_2 , +SOC_SINGLE_TLV ("BDE LVL4 Clip Thresh Volume" ,MAX98373_R20B2_BDE_L4_CFG_2 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL1 Clip Gain Reduct" ,MAX98373_R20AA_BDE_L1_CFG_3 , +SOC_SINGLE_TLV ("BDE LVL1 Clip Reduction Volume" ,MAX98373_R20AA_BDE_L1_CFG_3 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL2 Clip Gain Reduct" ,MAX98373_R20AD_BDE_L2_CFG_3 , +SOC_SINGLE_TLV ("BDE LVL2 Clip Reduction Volume" ,MAX98373_R20AD_BDE_L2_CFG_3 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL3 Clip Gain Reduct" ,MAX98373_R20B0_BDE_L3_CFG_3 , +SOC_SINGLE_TLV ("BDE LVL3 Clip Reduction Volume" ,MAX98373_R20B0_BDE_L3_CFG_3 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL4 Clip Gain Reduct" ,MAX98373_R20B3_BDE_L4_CFG_3 , +SOC_SINGLE_TLV ("BDE LVL4 Clip Reduction Volume" ,MAX98373_R20B3_BDE_L4_CFG_3 ,0 ,0x3C ,0 , max98373_bde_gain_tlv), -SOC_SINGLE_TLV ("BDE LVL1 Limiter Thresh" ,MAX98373_R20A8_BDE_L1_CFG_1 , +SOC_SINGLE_TLV ("BDE LVL1 Limiter Thresh Volume" ,MAX98373_R20A8_BDE_L1_CFG_1 ,0 ,0xF ,0 , max98373_limiter_thresh_tlv), -SOC_SINGLE_TLV ("BDE LVL2 Limiter Thresh" ,MAX98373_R20AB_BDE_L2_CFG_1 , +SOC_SINGLE_TLV ("BDE LVL2 Limiter Thresh Volume" ,MAX98373_R20AB_BDE_L2_CFG_1 ,0 ,0xF ,0 , max98373_limiter_thresh_tlv), -SOC_SINGLE_TLV ("BDE LVL3 Limiter Thresh" ,MAX98373_R20AE_BDE_L3_CFG_1 , +SOC_SINGLE_TLV ("BDE LVL3 Limiter Thresh Volume" ,MAX98373_R20AE_BDE_L3_CFG_1 ,0 ,0xF ,0 , max98373_limiter_thresh_tlv), -SOC_SINGLE_TLV ("BDE LVL4 Limiter Thresh" ,MAX98373_R20B1_BDE_L4_CFG_1 , +SOC_SINGLE_TLV ("BDE LVL4 Limiter Thresh Volume" ,MAX98373_R20B1_BDE_L4_CFG_1 ,0 ,0xF ,0 , max98373_limiter_thresh_tlv),/* Limiter */ SOC_SINGLE ("Limiter Switch" ,MAX98373_R20E2_LIMITER_EN ,MAX98373_LIMITER_EN_SHIFT ,1 ,0 ),SOC_SINGLE ("Limiter Src Switch" ,MAX98373_R20E0_LIMITER_THRESH_CFG ,MAX98373_LIMITER_THRESH_SRC_SHIFT ,1 ,0 ), -SOC_SINGLE_TLV ("Limiter Thresh" ,MAX98373_R20E0_LIMITER_THRESH_CFG , +SOC_SINGLE_TLV ("Limiter Thresh Volume" ,MAX98373_R20E0_LIMITER_THRESH_CFG ,MAX98373_LIMITER_THRESH_SHIFT ,15 ,0 , max98373_limiter_thresh_tlv),SOC_ENUM ("Limiter Attack Rate" , max98373_limiter_attack_rate_enum), SOC_ENUM("Limiter Release Rate", max98373_limiter_release_rate_enum),
Signature · 1 line
2.15.1
Mark Brown
maintainersound/soc/codecs/max98373.c line 2
Quoted 4 lines · Ryan Lee
sound/soc/codecs/max98373.c +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2017, Maxim Integrated */
Please change the entire header to C++, mixing C and C++ on adjacent lines looks ugly.
Quoted 10 lines · Mark Brown
sound/soc/codecs/max98373.c line 2
Quoted 4 lines · Ryan Lee
sound/soc/codecs/max98373.c +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2017, Maxim Integrated */ Please change the entire header to C++, mixing C and C++ on adjacent lines looks ugly.
I'm not sure whether it's a good direction to go, either.
I rather wonder why SPDX line *must* be in C++ comment style...
thanks,
Takashi
Mark Brown
maintainerQuoted 11 lines · Takashi Iwai
Quoted 9 lines · Mark Brown
sound/soc/codecs/max98373.c line 2
Quoted 4 lines · Ryan Lee
sound/soc/codecs/max98373.c +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2017, Maxim Integrated */ Please change the entire header to C++, mixing C and C++ on adjacent lines looks ugly.
Quoted 3 lines
I'm not sure whether it's a good direction to go, either.
I rather wonder why SPDX line *must* be in C++ comment style...
Apparently it's to remove any ambiguity for the tooling or something, plus Linus decided he likes C++ comments.
I don't understand why this isn't done as a macro like MODULE_LICENSE() and so on but the decision was rushed through and not really publicised :9
Quoted 24 lines
-----Original Message-----
From: Mark Brown [mailto:[email protected]]
Sent: Wednesday, January 10, 2018 2:30 AM
To: Takashi Iwai <[email protected]>
Cc: Ryan Lee <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; linux- [email protected]
Subject: Re: [PATCH 1/4] ASoC: max98373: Changed SPDX header in C++ comments styleQuoted 12 lines · Takashi Iwai
Quoted 9 lines · Mark Brown
sound/soc/codecs/max98373.c line 2
Quoted 4 lines · Ryan Lee
sound/soc/codecs/max98373.c +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0 */ +// SPDX-License-Identifier: GPL-2.0 /* Copyright (c) 2017, Maxim Integrated */ Please change the entire header to C++, mixing C and C++ on adjacent lines looks ugly.
I'm not sure whether it's a good direction to go, either.
Quoted 8 lines
Quoted 1 line
I rather wonder why SPDX line *must* be in C++ comment style...
Apparently it's to remove any ambiguity for the tooling or something, plus Linus decided he likes C++ comments.
I don't understand why this isn't done as a macro like
MODULE_LICENSE()and so on but the decision was rushed through and not really publicised :9
Thank you for your feedback.
I modified two header lines in C++ comment style and send it again.