ASoC: sun4i-codec: Remove unneeded gpiod NULL check
Subsystems (6)
PATCH 1/8 ASoC: sun4i-codec: Remove unneeded gpiod NULL check
From: Fabio Estevam <[email protected]>
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/sunxi/sun4i-codec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
sound/soc/sunxi/sun4i-codec.c +2 -3
@@ -1171,9 +1171,8 @@ static int sun4i_codec_spk_event(struct snd_soc_dapm_widget *w, {struct sun4i_codec *scodec =snd_soc_card_get_drvdata (w->dapm->card); -if (scodec->gpio_pa) -gpiod_set_value_cansleep (scodec->gpio_pa, - !!SND_SOC_DAPM_EVENT_ON (event)); +gpiod_set_value_cansleep (scodec->gpio_pa, + !!SND_SOC_DAPM_EVENT_ON (event));return 0 ; }
Signature · 1 line
2.7.4
PATCH 2/8 ASoC: wm8804: Remove unneeded gpiod NULL check
From: Fabio Estevam <[email protected]>
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/wm8804.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/codecs/wm8804.c +1 -2
@@ -623,8 +623,7 @@ int wm8804_probe(struct device *dev, struct regmap *regmap)return ret; } -if (wm8804->reset) -gpiod_set_value_cansleep (wm8804->reset,1 ); +gpiod_set_value_cansleep (wm8804->reset,1 ); ret =regmap_read (regmap,WM8804_RST_DEVID1 , &id1);if (ret <0 ) {
Signature · 1 line
2.7.4
PATCH 3/8 ASoC: adau1977: Remove unneeded gpiod NULL check
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/adau1977.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
sound/soc/codecs/adau1977.c +2 -4
@@ -388,8 +388,7 @@ static int adau1977_power_disable(struct adau1977 *adau1977)regcache_mark_dirty (adau1977->regmap); -if (adau1977->reset_gpio) -gpiod_set_value_cansleep (adau1977->reset_gpio,0 ); +gpiod_set_value_cansleep (adau1977->reset_gpio,0 );regcache_cache_only (adau1977->regmap, true);
@@ -420,8 +419,7 @@ static int adau1977_power_enable(struct adau1977 *adau1977) goto err_disable_avdd; } -if (adau1977->reset_gpio) -gpiod_set_value_cansleep (adau1977->reset_gpio,1 ); +gpiod_set_value_cansleep (adau1977->reset_gpio,1 );regcache_cache_only (adau1977->regmap, false);
Signature · 1 line
2.7.4
PATCH 4/8 ASoC: cs35l33: Remove unneeded gpiod NULL check
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/cs35l33.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
sound/soc/codecs/cs35l33.c +4 -8
@@ -869,8 +869,7 @@ static int __maybe_unused cs35l33_runtime_resume(struct device *dev)dev_dbg (dev,"%s\n" , __func__); -if (cs35l33->reset_gpio) -gpiod_set_value_cansleep (cs35l33->reset_gpio,0 ); +gpiod_set_value_cansleep (cs35l33->reset_gpio,0 ); ret =regulator_bulk_enable (cs35l33->num_core_supplies, cs35l33->core_supplies);
@@ -881,8 +880,7 @@ static int __maybe_unused cs35l33_runtime_resume(struct device *dev)regcache_cache_only (cs35l33->regmap, false); -if (cs35l33->reset_gpio) -gpiod_set_value_cansleep (cs35l33->reset_gpio,1 ); +gpiod_set_value_cansleep (cs35l33->reset_gpio,1 );msleep (CS35L33_BOOT_DELAY );
@@ -1191,8 +1189,7 @@ static int cs35l33_i2c_probe(struct i2c_client *i2c_client,return ret; } -if (cs35l33->reset_gpio) -gpiod_set_value_cansleep (cs35l33->reset_gpio,1 ); +gpiod_set_value_cansleep (cs35l33->reset_gpio,1 );msleep (CS35L33_BOOT_DELAY );regcache_cache_only (cs35l33->regmap, false);
@@ -1262,8 +1259,7 @@ static int cs35l33_i2c_remove(struct i2c_client *client)snd_soc_unregister_codec (&client->dev); -if (cs35l33->reset_gpio) -gpiod_set_value_cansleep (cs35l33->reset_gpio,0 ); +gpiod_set_value_cansleep (cs35l33->reset_gpio,0 );pm_runtime_disable (&client->dev); regulator_bulk_disable(cs35l33->num_core_supplies,
Signature · 1 line
2.7.4
PATCH 5/8 ASoC: cs35l34: Remove unneeded gpiod NULL check
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/cs35l34.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/codecs/cs35l34.c +1 -2
@@ -1138,8 +1138,7 @@ static int cs35l34_i2c_remove(struct i2c_client *client)snd_soc_unregister_codec (&client->dev); -if (cs35l34->reset_gpio) -gpiod_set_value_cansleep (cs35l34->reset_gpio,0 ); +gpiod_set_value_cansleep (cs35l34->reset_gpio,0 );pm_runtime_disable (&client->dev); regulator_bulk_disable(cs35l34->num_core_supplies,
Signature · 1 line
2.7.4
PATCH 6/8 ASoC: cs42l42: Remove unneeded gpiod NULL check
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/cs42l42.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
sound/soc/codecs/cs42l42.c +3 -6
@@ -1898,8 +1898,7 @@ static int cs42l42_i2c_remove(struct i2c_client *i2c_client)snd_soc_unregister_codec (&i2c_client->dev);/* Hold down reset */ -if (cs42l42->reset_gpio) -gpiod_set_value_cansleep (cs42l42->reset_gpio,0 ); +gpiod_set_value_cansleep (cs42l42->reset_gpio,0 );return 0 ; }
@@ -1913,8 +1912,7 @@ static int cs42l42_runtime_suspend(struct device *dev)regcache_mark_dirty (cs42l42->regmap);/* Hold down reset */ -if (cs42l42->reset_gpio) -gpiod_set_value_cansleep (cs42l42->reset_gpio,0 ); +gpiod_set_value_cansleep (cs42l42->reset_gpio,0 );/* remove power */ regulator_bulk_disable(ARRAY_SIZE(cs42l42->supplies),
@@ -1937,8 +1935,7 @@ static int cs42l42_runtime_resume(struct device *dev)return ret; } -if (cs42l42->reset_gpio) -gpiod_set_value_cansleep (cs42l42->reset_gpio,1 ); +gpiod_set_value_cansleep (cs42l42->reset_gpio,1 );regcache_cache_only (cs42l42->regmap, false);regcache_sync (cs42l42->regmap);
Signature · 1 line
2.7.4
PATCH 7/8 ASoC: cs53l30: Remove unneeded gpiod NULL check
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/cs53l30.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-)
sound/soc/codecs/cs53l30.c +5 -10
@@ -842,8 +842,7 @@ static int cs53l30_mute_stream(struct snd_soc_dai *dai, int mute, int stream) {struct cs53l30_private *priv =snd_soc_codec_get_drvdata (dai->codec); -if (priv->mute_gpio) -gpiod_set_value_cansleep (priv->mute_gpio, mute); +gpiod_set_value_cansleep (priv->mute_gpio, mute);return 0 ; }
@@ -960,8 +959,7 @@ static int cs53l30_i2c_probe(struct i2c_client *client, goto error; } -if (cs53l30->reset_gpio) -gpiod_set_value_cansleep (cs53l30->reset_gpio,1 ); +gpiod_set_value_cansleep (cs53l30->reset_gpio,1 );i2c_set_clientdata (client, cs53l30);
@@ -1056,8 +1054,7 @@ static int cs53l30_i2c_remove(struct i2c_client *client)snd_soc_unregister_codec (&client->dev);/* Hold down reset */ -if (cs53l30->reset_gpio) -gpiod_set_value_cansleep (cs53l30->reset_gpio,0 ); +gpiod_set_value_cansleep (cs53l30->reset_gpio,0 );regulator_bulk_disable (ARRAY_SIZE (cs53l30->supplies), cs53l30->supplies);
@@ -1073,8 +1070,7 @@ static int cs53l30_runtime_suspend(struct device *dev)regcache_cache_only (cs53l30->regmap, true);/* Hold down reset */ -if (cs53l30->reset_gpio) -gpiod_set_value_cansleep (cs53l30->reset_gpio,0 ); +gpiod_set_value_cansleep (cs53l30->reset_gpio,0 );regulator_bulk_disable (ARRAY_SIZE (cs53l30->supplies), cs53l30->supplies);
@@ -1094,8 +1090,7 @@ static int cs53l30_runtime_resume(struct device *dev)return ret; } -if (cs53l30->reset_gpio) -gpiod_set_value_cansleep (cs53l30->reset_gpio,1 ); +gpiod_set_value_cansleep (cs53l30->reset_gpio,1 );regcache_cache_only (cs53l30->regmap, false); ret =regcache_sync (cs53l30->regmap);
Signature · 1 line
2.7.4
PATCH 8/8 ASoC: sta32x: Remove unneeded gpiod NULL check
In reply to Fabio EstevamFrom: Fabio Estevam <[email protected]>
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/sta32x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/codecs/sta32x.c +1 -2
@@ -847,8 +847,7 @@ static int sta32x_set_bias_level(struct snd_soc_codec *codec,msleep (300 );sta32x_watchdog_stop (sta32x); -if (sta32x->gpiod_nreset) -gpiod_set_value (sta32x->gpiod_nreset,0 ); +gpiod_set_value (sta32x->gpiod_nreset,0 );regulator_bulk_disable (ARRAY_SIZE (sta32x->supplies), sta32x->supplies);
Signature · 1 line
2.7.4
Mark Brown
maintainerApplied "ASoC: sta32x: Remove unneeded gpiod NULL check" to the asoc tree
The patch
ASoC: sta32x: Remove unneeded gpiod NULL check
has been applied to the asoc tree at
git://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
c5efe232e09ef29cc2f9e8333a49dd8891366c22Mon Sep 17 00:00:00 2001
From: Fabio Estevam <[email protected]>
Date: Sun, 16 Jul 2017 18:11:13 -0300
Subject: [PATCH] ASoC: sta32x: Remove unneeded gpiod NULL check
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/sta32x.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/codecs/sta32x.c +1 -2
@@ -847,8 +847,7 @@ static int sta32x_set_bias_level(struct snd_soc_codec *codec,msleep (300 );sta32x_watchdog_stop (sta32x); -if (sta32x->gpiod_nreset) -gpiod_set_value (sta32x->gpiod_nreset,0 ); +gpiod_set_value (sta32x->gpiod_nreset,0 );regulator_bulk_disable (ARRAY_SIZE (sta32x->supplies), sta32x->supplies);
Signature · 1 line
2.13.2
Mark Brown
maintainerApplied "ASoC: cs53l30: Remove unneeded gpiod NULL check" to the asoc tree
In reply to Fabio EstevamThe patch
ASoC: cs53l30: Remove unneeded gpiod NULL check
has been applied to the asoc tree at
git://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
55be663dc71ec50f0e383c50886cbd3be69fcd2eMon Sep 17 00:00:00 2001
From: Fabio Estevam <[email protected]>
Date: Sun, 16 Jul 2017 18:11:12 -0300
Subject: [PATCH] ASoC: cs53l30: Remove unneeded gpiod NULL check
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/cs53l30.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-)
sound/soc/codecs/cs53l30.c +5 -10
@@ -842,8 +842,7 @@ static int cs53l30_mute_stream(struct snd_soc_dai *dai, int mute, int stream) {struct cs53l30_private *priv =snd_soc_codec_get_drvdata (dai->codec); -if (priv->mute_gpio) -gpiod_set_value_cansleep (priv->mute_gpio, mute); +gpiod_set_value_cansleep (priv->mute_gpio, mute);return 0 ; }
@@ -960,8 +959,7 @@ static int cs53l30_i2c_probe(struct i2c_client *client, goto error; } -if (cs53l30->reset_gpio) -gpiod_set_value_cansleep (cs53l30->reset_gpio,1 ); +gpiod_set_value_cansleep (cs53l30->reset_gpio,1 );i2c_set_clientdata (client, cs53l30);
@@ -1056,8 +1054,7 @@ static int cs53l30_i2c_remove(struct i2c_client *client)snd_soc_unregister_codec (&client->dev);/* Hold down reset */ -if (cs53l30->reset_gpio) -gpiod_set_value_cansleep (cs53l30->reset_gpio,0 ); +gpiod_set_value_cansleep (cs53l30->reset_gpio,0 );regulator_bulk_disable (ARRAY_SIZE (cs53l30->supplies), cs53l30->supplies);
@@ -1073,8 +1070,7 @@ static int cs53l30_runtime_suspend(struct device *dev)regcache_cache_only (cs53l30->regmap, true);/* Hold down reset */ -if (cs53l30->reset_gpio) -gpiod_set_value_cansleep (cs53l30->reset_gpio,0 ); +gpiod_set_value_cansleep (cs53l30->reset_gpio,0 );regulator_bulk_disable (ARRAY_SIZE (cs53l30->supplies), cs53l30->supplies);
@@ -1094,8 +1090,7 @@ static int cs53l30_runtime_resume(struct device *dev)return ret; } -if (cs53l30->reset_gpio) -gpiod_set_value_cansleep (cs53l30->reset_gpio,1 ); +gpiod_set_value_cansleep (cs53l30->reset_gpio,1 );regcache_cache_only (cs53l30->regmap, false); ret =regcache_sync (cs53l30->regmap);
Signature · 1 line
2.13.2
Mark Brown
maintainerApplied "ASoC: cs42l42: Remove unneeded gpiod NULL check" to the asoc tree
In reply to Fabio EstevamThe patch
ASoC: cs42l42: Remove unneeded gpiod NULL check
has been applied to the asoc tree at
git://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
205cbac065f9589c77a79f26339cf63023f08f6eMon Sep 17 00:00:00 2001
From: Fabio Estevam <[email protected]>
Date: Sun, 16 Jul 2017 18:11:11 -0300
Subject: [PATCH] ASoC: cs42l42: Remove unneeded gpiod NULL check
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/cs42l42.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
sound/soc/codecs/cs42l42.c +3 -6
@@ -1898,8 +1898,7 @@ static int cs42l42_i2c_remove(struct i2c_client *i2c_client)snd_soc_unregister_codec (&i2c_client->dev);/* Hold down reset */ -if (cs42l42->reset_gpio) -gpiod_set_value_cansleep (cs42l42->reset_gpio,0 ); +gpiod_set_value_cansleep (cs42l42->reset_gpio,0 );return 0 ; }
@@ -1913,8 +1912,7 @@ static int cs42l42_runtime_suspend(struct device *dev)regcache_mark_dirty (cs42l42->regmap);/* Hold down reset */ -if (cs42l42->reset_gpio) -gpiod_set_value_cansleep (cs42l42->reset_gpio,0 ); +gpiod_set_value_cansleep (cs42l42->reset_gpio,0 );/* remove power */ regulator_bulk_disable(ARRAY_SIZE(cs42l42->supplies),
@@ -1937,8 +1935,7 @@ static int cs42l42_runtime_resume(struct device *dev)return ret; } -if (cs42l42->reset_gpio) -gpiod_set_value_cansleep (cs42l42->reset_gpio,1 ); +gpiod_set_value_cansleep (cs42l42->reset_gpio,1 );regcache_cache_only (cs42l42->regmap, false);regcache_sync (cs42l42->regmap);
Signature · 1 line
2.13.2
Mark Brown
maintainerApplied "ASoC: cs35l34: Remove unneeded gpiod NULL check" to the asoc tree
In reply to Fabio EstevamThe patch
ASoC: cs35l34: Remove unneeded gpiod NULL check
has been applied to the asoc tree at
git://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
db3be255a101da11f67c0f3053b750e767eb10feMon Sep 17 00:00:00 2001
From: Fabio Estevam <[email protected]>
Date: Sun, 16 Jul 2017 18:11:10 -0300
Subject: [PATCH] ASoC: cs35l34: Remove unneeded gpiod NULL check
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/cs35l34.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/codecs/cs35l34.c +1 -2
@@ -1138,8 +1138,7 @@ static int cs35l34_i2c_remove(struct i2c_client *client)snd_soc_unregister_codec (&client->dev); -if (cs35l34->reset_gpio) -gpiod_set_value_cansleep (cs35l34->reset_gpio,0 ); +gpiod_set_value_cansleep (cs35l34->reset_gpio,0 );pm_runtime_disable (&client->dev); regulator_bulk_disable(cs35l34->num_core_supplies,
Signature · 1 line
2.13.2
Mark Brown
maintainerApplied "ASoC: cs35l33: Remove unneeded gpiod NULL check" to the asoc tree
In reply to Fabio EstevamThe patch
ASoC: cs35l33: Remove unneeded gpiod NULL check
has been applied to the asoc tree at
git://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
c5660778b4851b1aea5d848ccfde3f27949f6418Mon Sep 17 00:00:00 2001
From: Fabio Estevam <[email protected]>
Date: Sun, 16 Jul 2017 18:11:09 -0300
Subject: [PATCH] ASoC: cs35l33: Remove unneeded gpiod NULL check
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/cs35l33.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
sound/soc/codecs/cs35l33.c +4 -8
@@ -869,8 +869,7 @@ static int __maybe_unused cs35l33_runtime_resume(struct device *dev)dev_dbg (dev,"%s\n" , __func__); -if (cs35l33->reset_gpio) -gpiod_set_value_cansleep (cs35l33->reset_gpio,0 ); +gpiod_set_value_cansleep (cs35l33->reset_gpio,0 ); ret =regulator_bulk_enable (cs35l33->num_core_supplies, cs35l33->core_supplies);
@@ -881,8 +880,7 @@ static int __maybe_unused cs35l33_runtime_resume(struct device *dev)regcache_cache_only (cs35l33->regmap, false); -if (cs35l33->reset_gpio) -gpiod_set_value_cansleep (cs35l33->reset_gpio,1 ); +gpiod_set_value_cansleep (cs35l33->reset_gpio,1 );msleep (CS35L33_BOOT_DELAY );
@@ -1191,8 +1189,7 @@ static int cs35l33_i2c_probe(struct i2c_client *i2c_client,return ret; } -if (cs35l33->reset_gpio) -gpiod_set_value_cansleep (cs35l33->reset_gpio,1 ); +gpiod_set_value_cansleep (cs35l33->reset_gpio,1 );msleep (CS35L33_BOOT_DELAY );regcache_cache_only (cs35l33->regmap, false);
@@ -1262,8 +1259,7 @@ static int cs35l33_i2c_remove(struct i2c_client *client)snd_soc_unregister_codec (&client->dev); -if (cs35l33->reset_gpio) -gpiod_set_value_cansleep (cs35l33->reset_gpio,0 ); +gpiod_set_value_cansleep (cs35l33->reset_gpio,0 );pm_runtime_disable (&client->dev); regulator_bulk_disable(cs35l33->num_core_supplies,
Signature · 1 line
2.13.2
Mark Brown
maintainerApplied "ASoC: wm8804: Remove unneeded gpiod NULL check" to the asoc tree
In reply to Fabio EstevamThe patch
ASoC: wm8804: Remove unneeded gpiod NULL check
has been applied to the asoc tree at
git://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
89b13706c4bb6dae0263014051dd59986376faa5Mon Sep 17 00:00:00 2001
From: Fabio Estevam <[email protected]>
Date: Sun, 16 Jul 2017 18:11:07 -0300
Subject: [PATCH] ASoC: wm8804: Remove unneeded gpiod NULL check
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/wm8804.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/codecs/wm8804.c +1 -2
@@ -623,8 +623,7 @@ int wm8804_probe(struct device *dev, struct regmap *regmap)return ret; } -if (wm8804->reset) -gpiod_set_value_cansleep (wm8804->reset,1 ); +gpiod_set_value_cansleep (wm8804->reset,1 ); ret =regmap_read (regmap,WM8804_RST_DEVID1 , &id1);if (ret <0 ) {
Signature · 1 line
2.13.2
Mark Brown
maintainerApplied "ASoC: adau1977: Remove unneeded gpiod NULL check" to the asoc tree
In reply to Fabio EstevamThe patch
ASoC: adau1977: Remove unneeded gpiod NULL check
has been applied to the asoc tree at
git://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
68feed90070e5133c0bfe26648410a39e092018dMon Sep 17 00:00:00 2001
From: Fabio Estevam <[email protected]>
Date: Sun, 16 Jul 2017 18:11:08 -0300
Subject: [PATCH] ASoC: adau1977: Remove unneeded gpiod NULL check
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/codecs/adau1977.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
sound/soc/codecs/adau1977.c +2 -4
@@ -388,8 +388,7 @@ static int adau1977_power_disable(struct adau1977 *adau1977)regcache_mark_dirty (adau1977->regmap); -if (adau1977->reset_gpio) -gpiod_set_value_cansleep (adau1977->reset_gpio,0 ); +gpiod_set_value_cansleep (adau1977->reset_gpio,0 );regcache_cache_only (adau1977->regmap, true);
@@ -420,8 +419,7 @@ static int adau1977_power_enable(struct adau1977 *adau1977) goto err_disable_avdd; } -if (adau1977->reset_gpio) -gpiod_set_value_cansleep (adau1977->reset_gpio,1 ); +gpiod_set_value_cansleep (adau1977->reset_gpio,1 );regcache_cache_only (adau1977->regmap, false);
Signature · 1 line
2.13.2
Mark Brown
maintainerApplied "ASoC: sun4i-codec: Remove unneeded gpiod NULL check" to the asoc tree
In reply to Fabio EstevamThe patch
ASoC: sun4i-codec: Remove unneeded gpiod NULL check
has been applied to the asoc tree at
git://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
d51579e6effa19c1ca4d6a29c3841cb454d56af6Mon Sep 17 00:00:00 2001
From: Fabio Estevam <[email protected]>
Date: Sun, 16 Jul 2017 18:11:06 -0300
Subject: [PATCH] ASoC: sun4i-codec: Remove unneeded gpiod NULL check
The gpiod API checks for NULL descriptors, so there is no need to duplicate the check in the driver.
--- sound/soc/sunxi/sun4i-codec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
sound/soc/sunxi/sun4i-codec.c +2 -3
@@ -1171,9 +1171,8 @@ static int sun4i_codec_spk_event(struct snd_soc_dapm_widget *w, {struct sun4i_codec *scodec =snd_soc_card_get_drvdata (w->dapm->card); -if (scodec->gpio_pa) -gpiod_set_value_cansleep (scodec->gpio_pa, - !!SND_SOC_DAPM_EVENT_ON (event)); +gpiod_set_value_cansleep (scodec->gpio_pa, + !!SND_SOC_DAPM_EVENT_ON (event));return 0 ; }
Signature · 1 line
2.13.2