From: Mark Brown <broonie@kernel.org>
To: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
Mark Brown <broonie@kernel.org>, Simon <horms@verge.net.au>
Subject: Applied "ASoC: uda1380: Remove #if IS_ENABLED(CONFIG_I2C)" to the asoc tree
Date: Mon, 21 Nov 2016 19:20:32 +0000 [thread overview]
Message-ID: <E1c8u8m-0007uS-84@debutante> (raw)
In-Reply-To: <87zil18h4p.wl%kuninori.morimoto.gx@renesas.com>
The patch
ASoC: uda1380: Remove #if IS_ENABLED(CONFIG_I2C)
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
>From 4a5cf1320a9501261919cf96af300b1df3ad0210 Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date: Thu, 17 Nov 2016 01:12:30 +0000
Subject: [PATCH] ASoC: uda1380: Remove #if IS_ENABLED(CONFIG_I2C)
uda1380 driver doesn't work without CONFIG_I2C anyway.
Let's remove #if IS_ENABLED(CONFIG_I2C), and use module_i2c_driver().
And, this patch adds "depends on I2C" to Kconfig
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/codecs/Kconfig | 1 +
sound/soc/codecs/uda1380.c | 22 +---------------------
2 files changed, 2 insertions(+), 21 deletions(-)
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index c67667bb970f..98b9a0c35d6b 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -874,6 +874,7 @@ config SND_SOC_UDA134X
config SND_SOC_UDA1380
tristate
+ depends on I2C
config SND_SOC_WL1273
tristate
diff --git a/sound/soc/codecs/uda1380.c b/sound/soc/codecs/uda1380.c
index 533e3bb444e4..8e52439a58fd 100644
--- a/sound/soc/codecs/uda1380.c
+++ b/sound/soc/codecs/uda1380.c
@@ -775,7 +775,6 @@ static struct snd_soc_codec_driver soc_codec_dev_uda1380 = {
},
};
-#if IS_ENABLED(CONFIG_I2C)
static int uda1380_i2c_probe(struct i2c_client *i2c,
const struct i2c_device_id *id)
{
@@ -815,27 +814,8 @@ static struct i2c_driver uda1380_i2c_driver = {
.remove = uda1380_i2c_remove,
.id_table = uda1380_i2c_id,
};
-#endif
-static int __init uda1380_modinit(void)
-{
- int ret = 0;
-#if IS_ENABLED(CONFIG_I2C)
- ret = i2c_add_driver(&uda1380_i2c_driver);
- if (ret != 0)
- pr_err("Failed to register UDA1380 I2C driver: %d\n", ret);
-#endif
- return ret;
-}
-module_init(uda1380_modinit);
-
-static void __exit uda1380_exit(void)
-{
-#if IS_ENABLED(CONFIG_I2C)
- i2c_del_driver(&uda1380_i2c_driver);
-#endif
-}
-module_exit(uda1380_exit);
+module_i2c_driver(uda1380_i2c_driver);
MODULE_AUTHOR("Giorgio Padrin");
MODULE_DESCRIPTION("Audio support for codec Philips UDA1380");
--
2.10.2
next prev parent reply other threads:[~2016-11-21 19:20 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-15 5:08 [PATCH 00/19] ASoC: Convert to module_i2c/spi_driver() Kuninori Morimoto
2016-11-15 5:09 ` [PATCH 01/19] ASoC: uda1380: Convert to module_i2c_driver() Kuninori Morimoto
2016-11-15 6:21 ` Takashi Iwai
2016-11-15 6:42 ` Kuninori Morimoto
2016-11-15 7:30 ` Takashi Iwai
2016-11-15 12:08 ` Lars-Peter Clausen
2016-11-16 18:01 ` Mark Brown
2016-11-17 0:18 ` Kuninori Morimoto
2016-11-21 19:20 ` Mark Brown [this message]
2016-11-15 5:09 ` [PATCH 02/19] ASoC: wm9081: " Kuninori Morimoto
2016-11-16 9:38 ` [alsa-devel] " Charles Keepax
2016-11-16 9:39 ` Charles Keepax
2016-11-17 0:43 ` Kuninori Morimoto
2016-11-21 19:20 ` Applied "ASoC: wm9081: Remove #if IS_ENABLED(CONFIG_I2C)" to the asoc tree Mark Brown
2016-11-15 5:09 ` [PATCH 03/19] ASoC: wm8580: Convert to module_i2c_driver() Kuninori Morimoto
2016-11-16 9:41 ` Charles Keepax
2016-11-17 0:10 ` Kuninori Morimoto
2016-11-15 5:10 ` [PATCH 04/19] ASoC: wm8523: " Kuninori Morimoto
2016-11-16 9:42 ` Charles Keepax
2016-11-21 19:20 ` Applied "ASoC: wm8523: Remove #if IS_ENABLED(CONFIG_I2C)" to the asoc tree Mark Brown
2016-11-15 5:10 ` [PATCH 05/19] ASoC: wm8510: Convert to module_i2c/spi_driver() Kuninori Morimoto
2016-11-15 8:33 ` Lars-Peter Clausen
2016-11-15 8:49 ` Kuninori Morimoto
2016-11-15 17:21 ` kbuild test robot
2016-11-16 9:44 ` Charles Keepax
2016-11-17 0:16 ` Kuninori Morimoto
2016-11-17 9:33 ` Charles Keepax
2016-11-17 9:51 ` Kuninori Morimoto
2016-11-15 5:10 ` [PATCH 06/19] ASoC: wm8995: " Kuninori Morimoto
2016-11-15 18:05 ` kbuild test robot
2016-11-15 5:11 ` [PATCH 07/19] ASoC: wm8988: " Kuninori Morimoto
2016-11-15 5:11 ` [PATCH 08/19] ASoC: wm8985: " Kuninori Morimoto
2016-11-15 17:40 ` kbuild test robot
2016-11-15 5:11 ` [PATCH 09/19] ASoC: wm8983: " Kuninori Morimoto
2016-11-15 5:12 ` [PATCH 10/19] ASoC: wm8900: " Kuninori Morimoto
2016-11-15 5:12 ` [PATCH 11/19] ASoC: wm8776: " Kuninori Morimoto
2016-11-15 17:51 ` kbuild test robot
2016-11-15 5:12 ` [PATCH 12/19] ASoC: wm8753: " Kuninori Morimoto
2016-11-15 17:35 ` kbuild test robot
2016-11-15 5:13 ` [PATCH 13/19] ASoC: wm8750: " Kuninori Morimoto
2016-11-15 5:13 ` [PATCH 14/19] ASoC: wm8741: " Kuninori Morimoto
2016-11-15 17:51 ` kbuild test robot
2016-11-15 5:13 ` [PATCH 15/19] ASoC: wm8731: " Kuninori Morimoto
2016-11-15 18:07 ` kbuild test robot
2016-11-15 5:13 ` [PATCH 16/19] ASoC: wm8737: " Kuninori Morimoto
2016-11-15 5:14 ` [PATCH 17/19] ASoC: wm8728: " Kuninori Morimoto
2016-11-15 5:14 ` [PATCH 18/19] ASoC: wm8711: " Kuninori Morimoto
2016-11-15 5:14 ` [PATCH 19/19] ASoC: da7210: " Kuninori Morimoto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1c8u8m-0007uS-84@debutante \
--to=broonie@kernel.org \
--cc=alsa-devel@alsa-project.org \
--cc=horms@verge.net.au \
--cc=kuninori.morimoto.gx@renesas.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox