ASoC: Intel: bytcr_rt5651: switch to using devm_fwnode_gpiod_get()
Subsystems (3)
PATCH 1/1 ASoC: Intel: bytcr_rt5651: switch to using devm_fwnode_gpiod_get()
devm_fwnode_get_index_gpiod_from_child() is going away as the name is too unwieldy, let's switch to using the new devm_fwnode_gpiod_get().
--- sound/soc/intel/boards/bytcr_rt5651.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-)
sound/soc/intel/boards/bytcr_rt5651.c +10 -8
@@ -998,10 +998,11 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev)if (byt_rt5651_gpios) {devm_acpi_dev_add_driver_gpios (codec_dev, byt_rt5651_gpios); - priv->ext_amp_gpio =devm_fwnode_get_index_gpiod_from_child ( - &pdev->dev,"ext-amp-enable" ,0 , - codec_dev->fwnode, -GPIOD_OUT_LOW ,"speaker-amp" ); + priv->ext_amp_gpio =devm_fwnode_gpiod_get (&pdev->dev, + codec_dev->fwnode, +"ext-amp-enable" , +GPIOD_OUT_LOW , +"speaker-amp" );if (IS_ERR (priv->ext_amp_gpio)) { ret_val =PTR_ERR (priv->ext_amp_gpio);switch (ret_val) {
@@ -1017,10 +1018,11 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev)return ret_val; } } - priv->hp_detect =devm_fwnode_get_index_gpiod_from_child ( - &pdev->dev,"hp-detect" ,0 , - codec_dev->fwnode, -GPIOD_IN ,"hp-detect" ); + priv->hp_detect =devm_fwnode_gpiod_get (&pdev->dev, + codec_dev->fwnode, +"hp-detect" , +GPIOD_IN , +"hp-detect" );if (IS_ERR (priv->hp_detect)) { ret_val =PTR_ERR (priv->hp_detect);switch (ret_val) {
Signature · 5 lines
2.24.1.735.g03f4e72817-goog -- Dmitry
Mark Brown
maintainerApplied "ASoC: Intel: bytcr_rt5651: switch to using devm_fwnode_gpiod_get()" to the asoc tree
The patch
ASoC: Intel: bytcr_rt5651: switch to using devm_fwnode_gpiod_get()
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
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
From e26c4e900b1a75b1e0c9e19e1f807666a8ad2fa1 Mon Sep 17 00:00:00 2001
From: Dmitry Torokhov <[email protected]>
Date: Thu, 2 Jan 2020 17:17:54 -0800
Subject: [PATCH] ASoC: Intel: bytcr_rt5651: switch to using
devm_fwnode_gpiod_get()
devm_fwnode_get_index_gpiod_from_child() is going away as the name is too unwieldy, let's switch to using the new devm_fwnode_gpiod_get().
--- sound/soc/intel/boards/bytcr_rt5651.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-)
sound/soc/intel/boards/bytcr_rt5651.c +10 -8
@@ -990,10 +990,11 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev)if (byt_rt5651_gpios) {devm_acpi_dev_add_driver_gpios (codec_dev, byt_rt5651_gpios); - priv->ext_amp_gpio =devm_fwnode_get_index_gpiod_from_child ( - &pdev->dev,"ext-amp-enable" ,0 , - codec_dev->fwnode, -GPIOD_OUT_LOW ,"speaker-amp" ); + priv->ext_amp_gpio =devm_fwnode_gpiod_get (&pdev->dev, + codec_dev->fwnode, +"ext-amp-enable" , +GPIOD_OUT_LOW , +"speaker-amp" );if (IS_ERR (priv->ext_amp_gpio)) { ret_val =PTR_ERR (priv->ext_amp_gpio);switch (ret_val) {
@@ -1009,10 +1010,11 @@ static int snd_byt_rt5651_mc_probe(struct platform_device *pdev)return ret_val; } } - priv->hp_detect =devm_fwnode_get_index_gpiod_from_child ( - &pdev->dev,"hp-detect" ,0 , - codec_dev->fwnode, -GPIOD_IN ,"hp-detect" ); + priv->hp_detect =devm_fwnode_gpiod_get (&pdev->dev, + codec_dev->fwnode, +"hp-detect" , +GPIOD_IN , +"hp-detect" );if (IS_ERR (priv->hp_detect)) { ret_val =PTR_ERR (priv->hp_detect);switch (ret_val) {
Signature · 1 line
2.20.1