ASoC: max9860: switch to using .probe_new
Subsystems (4)
PATCH v3 1/2 ASoC: max9860: switch to using .probe_new
Use the new probe style for i2c drivers.
--- sound/soc/codecs/max9860.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
sound/soc/codecs/max9860.c +2 -3
@@ -599,8 +599,7 @@ static const struct dev_pm_ops max9860_pm_ops = { SET_RUNTIME_PM_OPS(max9860_suspend, max9860_resume, NULL) }; -static int max9860_probe (struct i2c_client *i2c, -const struct i2c_device_id *id) +static int max9860_probe (struct i2c_client *i2c) {struct device *dev = &i2c->dev;struct max9860_priv *max9860;
@@ -738,7 +737,7 @@ static const struct of_device_id max9860_of_match[] = {MODULE_DEVICE_TABLE (of, max9860_of_match);static struct i2c_driver max9860_i2c_driver = { - .probe = max9860_probe, + .probe_new = max9860_probe, .remove = max9860_remove, .id_table = max9860_i2c_id, .driver = {
Signature · 1 line
2.11.0
PATCH v3 2/2 ASoC: tfa9879: switch to using .probe_new
Use the new probe style for i2c drivers.
--- sound/soc/codecs/tfa9879.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
sound/soc/codecs/tfa9879.c +2 -3
@@ -274,8 +274,7 @@ static struct snd_soc_dai_driver tfa9879_dai = { .ops = &tfa9879_dai_ops, }; -static int tfa9879_i2c_probe (struct i2c_client *i2c, -const struct i2c_device_id *id) +static int tfa9879_i2c_probe (struct i2c_client *i2c) {struct tfa9879_priv *tfa9879;int i;
@@ -323,7 +322,7 @@ static struct i2c_driver tfa9879_i2c_driver = { .name = "tfa9879", .of_match_table = tfa9879_of_match, }, - .probe = tfa9879_i2c_probe, + .probe_new = tfa9879_i2c_probe, .remove = tfa9879_i2c_remove, .id_table = tfa9879_i2c_id, };
Signature · 1 line
2.11.0
Mark Brown
maintainerRe: [PATCH 2/2] ASoC: tfa9879: switch to using .probe_new
Quoted 1 line · Peter Rosin
Use the new probe style for i2c drivers.
This doesn't apply against current code, please check and resend.
Re: [PATCH 2/2] ASoC: tfa9879: switch to using .probe_new
Quoted 4 lines · Mark Brown
Quoted 1 line · Peter Rosin
Use the new probe style for i2c drivers.
This doesn't apply against current code, please check and resend.
That's not my fault. Somebody forgot to drop a note with the maintainer so I was completely unaware of this change. It seems to have been a cocci-script or something behind that change because the code looks like shit afterwards.
For the record, I wish to be on Cc for changes to files I maintain. That is one of the core functions of the MAINTAINERS file, right?
Anyway, I added a couple of fixups for that mess and I also did a SPDX conversion while at it since I noticed it was needed. Finishing off with the rebased patch.
Cheers,
Peter
Peter Rosin (5):
ASoC: max9860: fix whitespace issues caused by mindless conversion
ASoC: tfa9879: fix whitespace issues caused by mindless conversion
ASoC: max9860: switch to SPDX license tag
ASoC: tfa9879: switch to SPDX license tag
ASoC: tfa9879: switch to using .probe_new
sound/soc/codecs/max9860.c | 18 ++++++------------ sound/soc/codecs/max9860.h | 10 +--------- sound/soc/codecs/tfa9879.c | 37 ++++++++++++++++--------------------- sound/soc/codecs/tfa9879.h | 7 +------ 4 files changed, 24 insertions(+), 48 deletions(-)
Signature · 1 line
2.11.0
PATCH v2 1/5 ASoC: max9860: fix whitespace issues caused by mindless conversion
Long lines and bad alignment disturbs the reading pleasure.
--- sound/soc/codecs/max9860.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
sound/soc/codecs/max9860.c +5 -3
@@ -443,7 +443,8 @@ static int max9860_hw_params(struct snd_pcm_substream *substream, ret =regmap_update_bits (max9860->regmap,MAX9860_AUDIOCLKHIGH ,MAX9860_PLL ,MAX9860_PLL );if (ret) { -dev_err (component->dev,"Failed to enable PLL: %d\n" , ret); +dev_err (component->dev,"Failed to enable PLL: %d\n" , + ret);return ret; } }
@@ -515,7 +516,8 @@ static int max9860_set_bias_level(struct snd_soc_component *component, ret =regmap_update_bits (max9860->regmap,MAX9860_PWRMAN ,MAX9860_SHDN ,MAX9860_SHDN );if (ret) { -dev_err (component->dev,"Failed to remove SHDN: %d\n" , ret); +dev_err (component->dev,"Failed to remove SHDN: %d\n" , + ret);return ret; }break ;
@@ -698,7 +700,7 @@ static int max9860_probe(struct i2c_client *i2c,pm_runtime_idle (dev); ret =devm_snd_soc_register_component (dev, &max9860_component_driver, - &max9860_dai,1 ); + &max9860_dai,1 );if (ret) {dev_err (dev,"Failed to register CODEC: %d\n" , ret); goto err_pm;
Signature · 1 line
2.11.0
Mark Brown
maintainerApplied "ASoC: max9860: fix whitespace issues caused by mindless conversion" to the asoc tree
The patch
ASoC: max9860: fix whitespace issues caused by mindless conversion
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
5c1dd6eee4923c89930f35bbc820c5c6af85e096Mon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Thu, 12 Apr 2018 23:14:33 +0200
Subject: [PATCH] ASoC: max9860: fix whitespace issues caused by mindless
conversion
Long lines and bad alignment disturbs the reading pleasure.
--- sound/soc/codecs/max9860.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
sound/soc/codecs/max9860.c +5 -3
@@ -443,7 +443,8 @@ static int max9860_hw_params(struct snd_pcm_substream *substream, ret =regmap_update_bits (max9860->regmap,MAX9860_AUDIOCLKHIGH ,MAX9860_PLL ,MAX9860_PLL );if (ret) { -dev_err (component->dev,"Failed to enable PLL: %d\n" , ret); +dev_err (component->dev,"Failed to enable PLL: %d\n" , + ret);return ret; } }
@@ -515,7 +516,8 @@ static int max9860_set_bias_level(struct snd_soc_component *component, ret =regmap_update_bits (max9860->regmap,MAX9860_PWRMAN ,MAX9860_SHDN ,MAX9860_SHDN );if (ret) { -dev_err (component->dev,"Failed to remove SHDN: %d\n" , ret); +dev_err (component->dev,"Failed to remove SHDN: %d\n" , + ret);return ret; }break ;
@@ -697,7 +699,7 @@ static int max9860_probe(struct i2c_client *i2c)pm_runtime_idle (dev); ret =devm_snd_soc_register_component (dev, &max9860_component_driver, - &max9860_dai,1 ); + &max9860_dai,1 );if (ret) {dev_err (dev,"Failed to register CODEC: %d\n" , ret); goto err_pm;
Signature · 1 line
2.17.0
PATCH v2 2/5 ASoC: tfa9879: fix whitespace issues caused by mindless conversion
In reply to Peter RosinLong lines and bad alignment disturbs the reading pleasure.
--- sound/soc/codecs/tfa9879.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-)
sound/soc/codecs/tfa9879.c +13 -12
@@ -88,13 +88,14 @@ static int tfa9879_hw_params(struct snd_pcm_substream *substream, }if (tfa9879->lsb_justified) -snd_soc_component_update_bits (component,TFA9879_SERIAL_INTERFACE_1 , -TFA9879_I2S_SET_MASK , - i2s_set <<TFA9879_I2S_SET_SHIFT ); +snd_soc_component_update_bits (component, +TFA9879_SERIAL_INTERFACE_1 , +TFA9879_I2S_SET_MASK , + i2s_set <<TFA9879_I2S_SET_SHIFT );snd_soc_component_update_bits (component,TFA9879_SERIAL_INTERFACE_1 , -TFA9879_I2S_FS_MASK , - fs <<TFA9879_I2S_FS_SHIFT ); +TFA9879_I2S_FS_MASK , + fs <<TFA9879_I2S_FS_SHIFT );return 0 ; }
@@ -103,8 +104,8 @@ static int tfa9879_digital_mute(struct snd_soc_dai *dai, int mute)struct snd_soc_component *component = dai->component;snd_soc_component_update_bits (component,TFA9879_MISC_CONTROL , -TFA9879_S_MUTE_MASK , - !!mute <<TFA9879_S_MUTE_SHIFT ); +TFA9879_S_MUTE_MASK , + !!mute <<TFA9879_S_MUTE_SHIFT );return 0 ; }
@@ -152,11 +153,11 @@ static int tfa9879_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) }snd_soc_component_update_bits (component,TFA9879_SERIAL_INTERFACE_1 , -TFA9879_SCK_POL_MASK , - sck_pol <<TFA9879_SCK_POL_SHIFT ); +TFA9879_SCK_POL_MASK , + sck_pol <<TFA9879_SCK_POL_SHIFT );snd_soc_component_update_bits (component,TFA9879_SERIAL_INTERFACE_1 , -TFA9879_I2S_SET_MASK , - i2s_set <<TFA9879_I2S_SET_SHIFT ); +TFA9879_I2S_SET_MASK , + i2s_set <<TFA9879_I2S_SET_SHIFT );return 0 ; }
@@ -298,7 +299,7 @@ static int tfa9879_i2c_probe(struct i2c_client *i2c, tfa9879_regs[i].reg, tfa9879_regs[i].def);return devm_snd_soc_register_component (&i2c->dev, &tfa9879_component, - &tfa9879_dai,1 ); + &tfa9879_dai,1 ); }static const struct i2c_device_id tfa9879_i2c_id[] = {
Signature · 1 line
2.11.0
Mark Brown
maintainerApplied "ASoC: tfa9879: fix whitespace issues caused by mindless conversion" to the asoc tree
The patch
ASoC: tfa9879: fix whitespace issues caused by mindless conversion
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
0d9c948bf87ef48a9c729fbe0ec279733f356d06Mon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Thu, 12 Apr 2018 23:14:34 +0200
Subject: [PATCH] ASoC: tfa9879: fix whitespace issues caused by mindless
conversion
Long lines and bad alignment disturbs the reading pleasure.
--- sound/soc/codecs/tfa9879.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-)
sound/soc/codecs/tfa9879.c +13 -12
@@ -88,13 +88,14 @@ static int tfa9879_hw_params(struct snd_pcm_substream *substream, }if (tfa9879->lsb_justified) -snd_soc_component_update_bits (component,TFA9879_SERIAL_INTERFACE_1 , -TFA9879_I2S_SET_MASK , - i2s_set <<TFA9879_I2S_SET_SHIFT ); +snd_soc_component_update_bits (component, +TFA9879_SERIAL_INTERFACE_1 , +TFA9879_I2S_SET_MASK , + i2s_set <<TFA9879_I2S_SET_SHIFT );snd_soc_component_update_bits (component,TFA9879_SERIAL_INTERFACE_1 , -TFA9879_I2S_FS_MASK , - fs <<TFA9879_I2S_FS_SHIFT ); +TFA9879_I2S_FS_MASK , + fs <<TFA9879_I2S_FS_SHIFT );return 0 ; }
@@ -103,8 +104,8 @@ static int tfa9879_digital_mute(struct snd_soc_dai *dai, int mute)struct snd_soc_component *component = dai->component;snd_soc_component_update_bits (component,TFA9879_MISC_CONTROL , -TFA9879_S_MUTE_MASK , - !!mute <<TFA9879_S_MUTE_SHIFT ); +TFA9879_S_MUTE_MASK , + !!mute <<TFA9879_S_MUTE_SHIFT );return 0 ; }
@@ -152,11 +153,11 @@ static int tfa9879_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) }snd_soc_component_update_bits (component,TFA9879_SERIAL_INTERFACE_1 , -TFA9879_SCK_POL_MASK , - sck_pol <<TFA9879_SCK_POL_SHIFT ); +TFA9879_SCK_POL_MASK , + sck_pol <<TFA9879_SCK_POL_SHIFT );snd_soc_component_update_bits (component,TFA9879_SERIAL_INTERFACE_1 , -TFA9879_I2S_SET_MASK , - i2s_set <<TFA9879_I2S_SET_SHIFT ); +TFA9879_I2S_SET_MASK , + i2s_set <<TFA9879_I2S_SET_SHIFT );return 0 ; }
@@ -298,7 +299,7 @@ static int tfa9879_i2c_probe(struct i2c_client *i2c, tfa9879_regs[i].reg, tfa9879_regs[i].def);return devm_snd_soc_register_component (&i2c->dev, &tfa9879_component, - &tfa9879_dai,1 ); + &tfa9879_dai,1 ); }static const struct i2c_device_id tfa9879_i2c_id[] = {
Signature · 1 line
2.17.0
Mark Brown
maintainerApplied "ASoC: tfa9879: fix whitespace issues caused by mindless conversion" to the asoc tree
In reply to Peter RosinThe patch
ASoC: tfa9879: fix whitespace issues caused by mindless conversion
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
42a2b6746955eb0265c2656282c7a424b51a54f1Mon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Thu, 12 Apr 2018 23:14:34 +0200
Subject: [PATCH] ASoC: tfa9879: fix whitespace issues caused by mindless
conversion
Long lines and bad alignment disturbs the reading pleasure.
--- sound/soc/codecs/tfa9879.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-)
sound/soc/codecs/tfa9879.c +13 -12
@@ -88,13 +88,14 @@ static int tfa9879_hw_params(struct snd_pcm_substream *substream, }if (tfa9879->lsb_justified) -snd_soc_component_update_bits (component,TFA9879_SERIAL_INTERFACE_1 , -TFA9879_I2S_SET_MASK , - i2s_set <<TFA9879_I2S_SET_SHIFT ); +snd_soc_component_update_bits (component, +TFA9879_SERIAL_INTERFACE_1 , +TFA9879_I2S_SET_MASK , + i2s_set <<TFA9879_I2S_SET_SHIFT );snd_soc_component_update_bits (component,TFA9879_SERIAL_INTERFACE_1 , -TFA9879_I2S_FS_MASK , - fs <<TFA9879_I2S_FS_SHIFT ); +TFA9879_I2S_FS_MASK , + fs <<TFA9879_I2S_FS_SHIFT );return 0 ; }
@@ -103,8 +104,8 @@ static int tfa9879_digital_mute(struct snd_soc_dai *dai, int mute)struct snd_soc_component *component = dai->component;snd_soc_component_update_bits (component,TFA9879_MISC_CONTROL , -TFA9879_S_MUTE_MASK , - !!mute <<TFA9879_S_MUTE_SHIFT ); +TFA9879_S_MUTE_MASK , + !!mute <<TFA9879_S_MUTE_SHIFT );return 0 ; }
@@ -152,11 +153,11 @@ static int tfa9879_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) }snd_soc_component_update_bits (component,TFA9879_SERIAL_INTERFACE_1 , -TFA9879_SCK_POL_MASK , - sck_pol <<TFA9879_SCK_POL_SHIFT ); +TFA9879_SCK_POL_MASK , + sck_pol <<TFA9879_SCK_POL_SHIFT );snd_soc_component_update_bits (component,TFA9879_SERIAL_INTERFACE_1 , -TFA9879_I2S_SET_MASK , - i2s_set <<TFA9879_I2S_SET_SHIFT ); +TFA9879_I2S_SET_MASK , + i2s_set <<TFA9879_I2S_SET_SHIFT );return 0 ; }
@@ -298,7 +299,7 @@ static int tfa9879_i2c_probe(struct i2c_client *i2c, tfa9879_regs[i].reg, tfa9879_regs[i].def);return devm_snd_soc_register_component (&i2c->dev, &tfa9879_component, - &tfa9879_dai,1 ); + &tfa9879_dai,1 ); }static const struct i2c_device_id tfa9879_i2c_id[] = {
Signature · 1 line
2.17.0
PATCH v2 3/5 ASoC: max9860: switch to SPDX license tag
In reply to Peter RosinIt's less overhead, clearer and generally neater.
--- sound/soc/codecs/max9860.c | 10 +--------- sound/soc/codecs/max9860.h | 10 +--------- 2 files changed, 2 insertions(+), 18 deletions(-)
sound/soc/codecs/max9860.c +1 -9
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Driver for the MAX9860 Mono Audio Voice Codec *
@@ -8,15 +9,6 @@* * Author: Peter Rosin <[email protected]> * Copyright 2016 Axentia Technologies -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* version 2 as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. */ #include <linux/init.h>
sound/soc/codecs/max9860.h +1 -9
@@ -1,17 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Driver for the MAX9860 Mono Audio Voice Codec * * Author: Peter Rosin <[email protected]> * Copyright 2016 Axentia Technologies -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* version 2 as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. */ #ifndef _SND_SOC_MAX9860
Signature · 1 line
2.11.0
Mark Brown
maintainerRe: [PATCH v2 3/5] ASoC: max9860: switch to SPDX license tag
sound/soc/codecs/max9860.c line 4
Quoted 5 lines · Peter Rosin
sound/soc/codecs/max9860.c +1
-0@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Driver for the MAX9860 Mono Audio Voice Codec *
Please don't mix C and C++ comments like this - it looks unintentional and messy. Just convert the entire comment block to C++ so it's consistent with itself.
v3 cover ASoC: max9860/tfa9879: switch to SPDX license tag
Quoted 11 lines · Mark Brown
sound/soc/codecs/max9860.c line 4
Quoted 5 lines · Peter Rosin
sound/soc/codecs/max9860.c +1
-0@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Driver for the MAX9860 Mono Audio Voice Codec * Please don't mix C and C++ comments like this - it looks unintentional and messy. Just convert the entire comment block to C++ so it's consistent with itself.
Done.
Cheers,
Peter
Peter Rosin (2):
ASoC: max9860: switch to SPDX license tag
ASoC: tfa9879: switch to SPDX license tag
sound/soc/codecs/max9860.c | 31 +++++++++++-------------------- sound/soc/codecs/max9860.h | 10 +--------- sound/soc/codecs/tfa9879.c | 18 ++++++------------ sound/soc/codecs/tfa9879.h | 7 +------ 4 files changed, 19 insertions(+), 47 deletions(-)
Signature · 1 line
2.11.0
PATCH v3 1/2 ASoC: max9860: switch to SPDX license tag
It's less overhead, clearer and generally neater.
--- sound/soc/codecs/max9860.c | 31 +++++++++++-------------------- sound/soc/codecs/max9860.h | 10 +--------- 2 files changed, 12 insertions(+), 29 deletions(-)
sound/soc/codecs/max9860.c +11 -20
@@ -1,23 +1,14 @@ -/* -* Driver for the MAX9860 Mono Audio Voice Codec -* -* https://datasheets.maximintegrated.com/en/ds/MAX9860.pdf -* -* The driver does not support sidetone since the DVST register field is -* backwards with the mute near the maximum level instead of the minimum. -* -* Author: Peter Rosin <[email protected]> -* Copyright 2016 Axentia Technologies -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* version 2 as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Driver for the MAX9860 Mono Audio Voice Codec +// +// https://datasheets.maximintegrated.com/en/ds/MAX9860.pdf +// +// The driver does not support sidetone since the DVST register field is +// backwards with the mute near the maximum level instead of the minimum. +// +// Author: Peter Rosin <[email protected]> +// Copyright 2016 Axentia Technologies #include <linux/init.h> #include <linux/module.h>
sound/soc/codecs/max9860.h +1 -9
@@ -1,17 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Driver for the MAX9860 Mono Audio Voice Codec * * Author: Peter Rosin <[email protected]> * Copyright 2016 Axentia Technologies -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* version 2 as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. */ #ifndef _SND_SOC_MAX9860
Signature · 1 line
2.11.0
Mark Brown
maintainerApplied "ASoC: max9860: switch to SPDX license tag" to the asoc tree
The patch
ASoC: max9860: switch to SPDX license tag
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
a93532dbdc8d6b96b8c51eea333cb40bfa7c490cMon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Fri, 13 Apr 2018 13:47:50 +0200
Subject: [PATCH] ASoC: max9860: switch to SPDX license tag
It's less overhead, clearer and generally neater.
--- sound/soc/codecs/max9860.c | 31 +++++++++++-------------------- sound/soc/codecs/max9860.h | 10 +--------- 2 files changed, 12 insertions(+), 29 deletions(-)
sound/soc/codecs/max9860.c +11 -20
@@ -1,23 +1,14 @@ -/* -* Driver for the MAX9860 Mono Audio Voice Codec -* -* https://datasheets.maximintegrated.com/en/ds/MAX9860.pdf -* -* The driver does not support sidetone since the DVST register field is -* backwards with the mute near the maximum level instead of the minimum. -* -* Author: Peter Rosin <[email protected]> -* Copyright 2016 Axentia Technologies -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* version 2 as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Driver for the MAX9860 Mono Audio Voice Codec +// +// https://datasheets.maximintegrated.com/en/ds/MAX9860.pdf +// +// The driver does not support sidetone since the DVST register field is +// backwards with the mute near the maximum level instead of the minimum. +// +// Author: Peter Rosin <[email protected]> +// Copyright 2016 Axentia Technologies #include <linux/init.h> #include <linux/module.h>
sound/soc/codecs/max9860.h +1 -9
@@ -1,17 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Driver for the MAX9860 Mono Audio Voice Codec * * Author: Peter Rosin <[email protected]> * Copyright 2016 Axentia Technologies -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* version 2 as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. */ #ifndef _SND_SOC_MAX9860
Signature · 1 line
2.17.0
Mark Brown
maintainerApplied "ASoC: max9860: switch to SPDX license tag" to the asoc tree
In reply to Peter RosinThe patch
ASoC: max9860: switch to SPDX license tag
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
a93532dbdc8d6b96b8c51eea333cb40bfa7c490cMon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Fri, 13 Apr 2018 13:47:50 +0200
Subject: [PATCH] ASoC: max9860: switch to SPDX license tag
It's less overhead, clearer and generally neater.
--- sound/soc/codecs/max9860.c | 31 +++++++++++-------------------- sound/soc/codecs/max9860.h | 10 +--------- 2 files changed, 12 insertions(+), 29 deletions(-)
sound/soc/codecs/max9860.c +11 -20
@@ -1,23 +1,14 @@ -/* -* Driver for the MAX9860 Mono Audio Voice Codec -* -* https://datasheets.maximintegrated.com/en/ds/MAX9860.pdf -* -* The driver does not support sidetone since the DVST register field is -* backwards with the mute near the maximum level instead of the minimum. -* -* Author: Peter Rosin <[email protected]> -* Copyright 2016 Axentia Technologies -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* version 2 as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Driver for the MAX9860 Mono Audio Voice Codec +// +// https://datasheets.maximintegrated.com/en/ds/MAX9860.pdf +// +// The driver does not support sidetone since the DVST register field is +// backwards with the mute near the maximum level instead of the minimum. +// +// Author: Peter Rosin <[email protected]> +// Copyright 2016 Axentia Technologies #include <linux/init.h> #include <linux/module.h>
sound/soc/codecs/max9860.h +1 -9
@@ -1,17 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Driver for the MAX9860 Mono Audio Voice Codec * * Author: Peter Rosin <[email protected]> * Copyright 2016 Axentia Technologies -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* version 2 as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. */ #ifndef _SND_SOC_MAX9860
Signature · 1 line
2.17.0
PATCH v3 2/2 ASoC: tfa9879: switch to SPDX license tag
In reply to Peter RosinIt's less overhead, clearer and generally neater.
--- sound/soc/codecs/tfa9879.c | 18 ++++++------------ sound/soc/codecs/tfa9879.h | 7 +------ 2 files changed, 7 insertions(+), 18 deletions(-)
sound/soc/codecs/tfa9879.c +6 -12
@@ -1,15 +1,9 @@ -/* -* tfa9879.c -- driver for NXP Semiconductors TFA9879 -* -* Copyright (C) 2014 Axentia Technologies AB -* Author: Peter Rosin <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License as published by the -* Free Software Foundation; either version 2 of the License, or (at your -* option) any later version. -* -*/ +// SPDX-License-Identifier: GPL-2.0+ +// +// tfa9879.c -- driver for NXP Semiconductors TFA9879 +// +// Copyright (C) 2014 Axentia Technologies AB +// Author: Peter Rosin <[email protected]> #include <linux/module.h> #include <linux/init.h>
sound/soc/codecs/tfa9879.h +1 -6
@@ -1,14 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * tfa9879.h -- driver for NXP Semiconductors TFA9879 * * Copyright (C) 2014 Axentia Technologies AB * Author: Peter Rosin <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License as published by the -* Free Software Foundation; either version 2 of the License, or (at your -* option) any later version. -* */ #ifndef _TFA9879_H
Signature · 1 line
2.11.0
Mark Brown
maintainerApplied "ASoC: tfa9879: switch to SPDX license tag" to the asoc tree
The patch
ASoC: tfa9879: switch to SPDX license tag
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
55c19bd95f4dac2ee221272349900dda75a67ebbMon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Fri, 13 Apr 2018 13:47:51 +0200
Subject: [PATCH] ASoC: tfa9879: switch to SPDX license tag
It's less overhead, clearer and generally neater.
--- sound/soc/codecs/tfa9879.c | 18 ++++++------------ sound/soc/codecs/tfa9879.h | 7 +------ 2 files changed, 7 insertions(+), 18 deletions(-)
sound/soc/codecs/tfa9879.c +6 -12
@@ -1,15 +1,9 @@ -/* -* tfa9879.c -- driver for NXP Semiconductors TFA9879 -* -* Copyright (C) 2014 Axentia Technologies AB -* Author: Peter Rosin <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License as published by the -* Free Software Foundation; either version 2 of the License, or (at your -* option) any later version. -* -*/ +// SPDX-License-Identifier: GPL-2.0+ +// +// tfa9879.c -- driver for NXP Semiconductors TFA9879 +// +// Copyright (C) 2014 Axentia Technologies AB +// Author: Peter Rosin <[email protected]> #include <linux/module.h> #include <linux/init.h>
sound/soc/codecs/tfa9879.h +1 -6
@@ -1,14 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * tfa9879.h -- driver for NXP Semiconductors TFA9879 * * Copyright (C) 2014 Axentia Technologies AB * Author: Peter Rosin <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License as published by the -* Free Software Foundation; either version 2 of the License, or (at your -* option) any later version. -* */ #ifndef _TFA9879_H
Signature · 1 line
2.17.0
Mark Brown
maintainerApplied "ASoC: tfa9879: switch to SPDX license tag" to the asoc tree
In reply to Peter RosinThe patch
ASoC: tfa9879: switch to SPDX license tag
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
3d5fa5270b1f4cc47b300a943b2a82727c6c6b07Mon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Fri, 13 Apr 2018 13:47:51 +0200
Subject: [PATCH] ASoC: tfa9879: switch to SPDX license tag
It's less overhead, clearer and generally neater.
--- sound/soc/codecs/tfa9879.c | 18 ++++++------------ sound/soc/codecs/tfa9879.h | 7 +------ 2 files changed, 7 insertions(+), 18 deletions(-)
sound/soc/codecs/tfa9879.c +6 -12
@@ -1,15 +1,9 @@ -/* -* tfa9879.c -- driver for NXP Semiconductors TFA9879 -* -* Copyright (C) 2014 Axentia Technologies AB -* Author: Peter Rosin <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License as published by the -* Free Software Foundation; either version 2 of the License, or (at your -* option) any later version. -* -*/ +// SPDX-License-Identifier: GPL-2.0+ +// +// tfa9879.c -- driver for NXP Semiconductors TFA9879 +// +// Copyright (C) 2014 Axentia Technologies AB +// Author: Peter Rosin <[email protected]> #include <linux/module.h> #include <linux/init.h>
sound/soc/codecs/tfa9879.h +1 -6
@@ -1,14 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * tfa9879.h -- driver for NXP Semiconductors TFA9879 * * Copyright (C) 2014 Axentia Technologies AB * Author: Peter Rosin <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License as published by the -* Free Software Foundation; either version 2 of the License, or (at your -* option) any later version. -* */ #ifndef _TFA9879_H
Signature · 1 line
2.17.0
Mark Brown
maintainerApplied "ASoC: tfa9879: switch to SPDX license tag" to the asoc tree
In reply to Peter RosinThe patch
ASoC: tfa9879: switch to SPDX license tag
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
3d5fa5270b1f4cc47b300a943b2a82727c6c6b07Mon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Fri, 13 Apr 2018 13:47:51 +0200
Subject: [PATCH] ASoC: tfa9879: switch to SPDX license tag
It's less overhead, clearer and generally neater.
--- sound/soc/codecs/tfa9879.c | 18 ++++++------------ sound/soc/codecs/tfa9879.h | 7 +------ 2 files changed, 7 insertions(+), 18 deletions(-)
sound/soc/codecs/tfa9879.c +6 -12
@@ -1,15 +1,9 @@ -/* -* tfa9879.c -- driver for NXP Semiconductors TFA9879 -* -* Copyright (C) 2014 Axentia Technologies AB -* Author: Peter Rosin <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License as published by the -* Free Software Foundation; either version 2 of the License, or (at your -* option) any later version. -* -*/ +// SPDX-License-Identifier: GPL-2.0+ +// +// tfa9879.c -- driver for NXP Semiconductors TFA9879 +// +// Copyright (C) 2014 Axentia Technologies AB +// Author: Peter Rosin <[email protected]> #include <linux/module.h> #include <linux/init.h>
sound/soc/codecs/tfa9879.h +1 -6
@@ -1,14 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * tfa9879.h -- driver for NXP Semiconductors TFA9879 * * Copyright (C) 2014 Axentia Technologies AB * Author: Peter Rosin <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License as published by the -* Free Software Foundation; either version 2 of the License, or (at your -* option) any later version. -* */ #ifndef _TFA9879_H
Signature · 1 line
2.17.0
Mark Brown
maintainerRe: [PATCH v3 0/2] ASoC: max9860/tfa9879: switch to SPDX license tag
In reply to Peter RosinQuoted 2 lines · Peter Rosin
Peter Rosin (2):
ASoC: max9860: switch to SPDX license tag
This one didn't turn up yet - it's only just been sent though so it might be stuck in a mail queue somewhere, I've applied patch 2 and I expect I'll apply this one as soon as it appears.
Re: [PATCH v2 3/5] ASoC: max9860: switch to SPDX license tag
In reply to Mark BrownQuoted 11 lines · Mark Brown
sound/soc/codecs/max9860.c line 4
Quoted 5 lines · Peter Rosin
sound/soc/codecs/max9860.c +1
-0@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Driver for the MAX9860 Mono Audio Voice Codec * Please don't mix C and C++ comments like this - it looks unintentional and messy. Just convert the entire comment block to C++ so it's consistent with itself.
NAK - that is exactky the wrong way to go. Normal Linux comments are classi C-style comments and should remain so. SPDX tags use c++ comments exactly to be different and stick out.
---end quoted text---
Mark Brown
maintainerRe: [PATCH v2 3/5] ASoC: max9860: switch to SPDX license tag
Quoted 13 lines · Christoph Hellwig
Quoted 11 lines · Mark Brown
sound/soc/codecs/max9860.c line 4
Quoted 5 lines · Peter Rosin
sound/soc/codecs/max9860.c +1
-0@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Driver for the MAX9860 Mono Audio Voice Codec * Please don't mix C and C++ comments like this - it looks unintentional and messy. Just convert the entire comment block to C++ so it's consistent with itself.
Quoted 3 lines
NAK - that is exactky the wrong way to go. Normal Linux comments are classi C-style comments and should remain so. SPDX tags use c++ comments exactly to be different and stick out.
During some of the discussions of the SPDX stuff Linus was expressing a willingness or desire to just use C++ comments where sensible outside of the SPDX headers, especially with single line stuff though this seems like another useful exception.
Quite why we'd particularly need to have the SPDX stuff sticking out isn't really obvious either; there's the desire to have something very consistent to ease machine parsing but it's not exactly what I'd expect most humans to be first looking for when they open a source file.
PATCH v2 4/5 ASoC: tfa9879: switch to SPDX license tag
In reply to Peter RosinIt's less overhead, clearer and generally neater.
--- sound/soc/codecs/tfa9879.c | 7 +------ sound/soc/codecs/tfa9879.h | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-)
sound/soc/codecs/tfa9879.c +1 -6
@@ -1,14 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * tfa9879.c -- driver for NXP Semiconductors TFA9879 * * Copyright (C) 2014 Axentia Technologies AB * Author: Peter Rosin <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License as published by the -* Free Software Foundation; either version 2 of the License, or (at your -* option) any later version. -* */ #include <linux/module.h>
sound/soc/codecs/tfa9879.h +1 -6
@@ -1,14 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * tfa9879.h -- driver for NXP Semiconductors TFA9879 * * Copyright (C) 2014 Axentia Technologies AB * Author: Peter Rosin <[email protected]> -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License as published by the -* Free Software Foundation; either version 2 of the License, or (at your -* option) any later version. -* */ #ifndef _TFA9879_H
Signature · 1 line
2.11.0
PATCH v2 5/5 ASoC: tfa9879: switch to using .probe_new
In reply to Peter RosinUse the new probe style for i2c drivers.
--- sound/soc/codecs/tfa9879.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
sound/soc/codecs/tfa9879.c +2 -3
@@ -272,8 +272,7 @@ static struct snd_soc_dai_driver tfa9879_dai = { .ops = &tfa9879_dai_ops, }; -static int tfa9879_i2c_probe (struct i2c_client *i2c, -const struct i2c_device_id *id) +static int tfa9879_i2c_probe (struct i2c_client *i2c) {struct tfa9879_priv *tfa9879;int i;
@@ -314,7 +313,7 @@ static struct i2c_driver tfa9879_i2c_driver = { .name = "tfa9879", .of_match_table = tfa9879_of_match, }, - .probe = tfa9879_i2c_probe, + .probe_new = tfa9879_i2c_probe, .id_table = tfa9879_i2c_id, };
Signature · 1 line
2.11.0
Mark Brown
maintainerApplied "ASoC: tfa9879: switch to using .probe_new" to the asoc tree
The patch
ASoC: tfa9879: switch to using .probe_new
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
9f03ad34c77aaeb1dfff7ca632bb31cb182dea7cMon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Thu, 12 Apr 2018 23:14:37 +0200
Subject: [PATCH] ASoC: tfa9879: switch to using .probe_new
Use the new probe style for i2c drivers.
--- sound/soc/codecs/tfa9879.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
sound/soc/codecs/tfa9879.c +2 -3
@@ -277,8 +277,7 @@ static struct snd_soc_dai_driver tfa9879_dai = { .ops = &tfa9879_dai_ops, }; -static int tfa9879_i2c_probe (struct i2c_client *i2c, -const struct i2c_device_id *id) +static int tfa9879_i2c_probe (struct i2c_client *i2c) {struct tfa9879_priv *tfa9879;int i;
@@ -319,7 +318,7 @@ static struct i2c_driver tfa9879_i2c_driver = { .name = "tfa9879", .of_match_table = tfa9879_of_match, }, - .probe = tfa9879_i2c_probe, + .probe_new = tfa9879_i2c_probe, .id_table = tfa9879_i2c_id, };
Signature · 1 line
2.17.0
Mark Brown
maintainerApplied "ASoC: tfa9879: switch to using .probe_new" to the asoc tree
In reply to Peter RosinThe patch
ASoC: tfa9879: switch to using .probe_new
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
e32259397e0166a7cc366e182f6f4297977d6c10Mon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Thu, 12 Apr 2018 23:14:37 +0200
Subject: [PATCH] ASoC: tfa9879: switch to using .probe_new
Use the new probe style for i2c drivers.
--- sound/soc/codecs/tfa9879.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
sound/soc/codecs/tfa9879.c +2 -3
@@ -277,8 +277,7 @@ static struct snd_soc_dai_driver tfa9879_dai = { .ops = &tfa9879_dai_ops, }; -static int tfa9879_i2c_probe (struct i2c_client *i2c, -const struct i2c_device_id *id) +static int tfa9879_i2c_probe (struct i2c_client *i2c) {struct tfa9879_priv *tfa9879;int i;
@@ -319,7 +318,7 @@ static struct i2c_driver tfa9879_i2c_driver = { .name = "tfa9879", .of_match_table = tfa9879_of_match, }, - .probe = tfa9879_i2c_probe, + .probe_new = tfa9879_i2c_probe, .id_table = tfa9879_i2c_id, };
Signature · 1 line
2.17.0
Mark Brown
maintainerRe: [PATCH 2/2] ASoC: tfa9879: switch to using .probe_new
In reply to Peter RosinQuoted 2 lines · Peter Rosin
For the record, I wish to be on Cc for changes to files I maintain. That is one of the core functions of the
MAINTAINERSfile, right?
Right, people should do that but it's not 100% reliable unfortunately. It's not unknown for people to wonder why I've not reviewed patches they didn't send me :(
Mark Brown
maintainerApplied "ASoC: max9860: switch to using .probe_new" to the asoc tree
In reply to Peter RosinThe patch
ASoC: max9860: switch to using .probe_new
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
ba4e62f653656a0077322eb29c7b8dde3c84399eMon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Wed, 11 Apr 2018 14:42:37 +0200
Subject: [PATCH] ASoC: max9860: switch to using .probe_new
Use the new probe style for i2c drivers.
--- sound/soc/codecs/max9860.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
sound/soc/codecs/max9860.c +2 -3
@@ -598,8 +598,7 @@ static const struct dev_pm_ops max9860_pm_ops = { SET_RUNTIME_PM_OPS(max9860_suspend, max9860_resume, NULL) }; -static int max9860_probe (struct i2c_client *i2c, -const struct i2c_device_id *id) +static int max9860_probe (struct i2c_client *i2c) {struct device *dev = &i2c->dev;struct max9860_priv *max9860;
@@ -736,7 +735,7 @@ static const struct of_device_id max9860_of_match[] = {MODULE_DEVICE_TABLE (of, max9860_of_match);static struct i2c_driver max9860_i2c_driver = { - .probe = max9860_probe, + .probe_new = max9860_probe, .remove = max9860_remove, .id_table = max9860_i2c_id, .driver = {
Signature · 1 line
2.17.0
Mark Brown
maintainerApplied "ASoC: max9860: switch to using .probe_new" to the asoc tree
In reply to Peter RosinThe patch
ASoC: max9860: switch to using .probe_new
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
ba4e62f653656a0077322eb29c7b8dde3c84399eMon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Wed, 11 Apr 2018 14:42:37 +0200
Subject: [PATCH] ASoC: max9860: switch to using .probe_new
Use the new probe style for i2c drivers.
--- sound/soc/codecs/max9860.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
sound/soc/codecs/max9860.c +2 -3
@@ -598,8 +598,7 @@ static const struct dev_pm_ops max9860_pm_ops = { SET_RUNTIME_PM_OPS(max9860_suspend, max9860_resume, NULL) }; -static int max9860_probe (struct i2c_client *i2c, -const struct i2c_device_id *id) +static int max9860_probe (struct i2c_client *i2c) {struct device *dev = &i2c->dev;struct max9860_priv *max9860;
@@ -736,7 +735,7 @@ static const struct of_device_id max9860_of_match[] = {MODULE_DEVICE_TABLE (of, max9860_of_match);static struct i2c_driver max9860_i2c_driver = { - .probe = max9860_probe, + .probe_new = max9860_probe, .remove = max9860_remove, .id_table = max9860_i2c_id, .driver = {
Signature · 1 line
2.17.0
Mark Brown
maintainerApplied "ASoC: max9860: switch to using .probe_new" to the asoc tree
In reply to Peter RosinThe patch
ASoC: max9860: switch to using .probe_new
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
ba4e62f653656a0077322eb29c7b8dde3c84399eMon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Wed, 11 Apr 2018 14:42:37 +0200
Subject: [PATCH] ASoC: max9860: switch to using .probe_new
Use the new probe style for i2c drivers.
--- sound/soc/codecs/max9860.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
sound/soc/codecs/max9860.c +2 -3
@@ -598,8 +598,7 @@ static const struct dev_pm_ops max9860_pm_ops = { SET_RUNTIME_PM_OPS(max9860_suspend, max9860_resume, NULL) }; -static int max9860_probe (struct i2c_client *i2c, -const struct i2c_device_id *id) +static int max9860_probe (struct i2c_client *i2c) {struct device *dev = &i2c->dev;struct max9860_priv *max9860;
@@ -736,7 +735,7 @@ static const struct of_device_id max9860_of_match[] = {MODULE_DEVICE_TABLE (of, max9860_of_match);static struct i2c_driver max9860_i2c_driver = { - .probe = max9860_probe, + .probe_new = max9860_probe, .remove = max9860_remove, .id_table = max9860_i2c_id, .driver = {
Signature · 1 line
2.17.0