* [PATCH] ASoC: cs42l56: Use IS_ENABLED() instead of checking for built-in or module
@ 2016-04-25 23:30 Javier Martinez Canillas
2016-04-26 11:07 ` Applied "ASoC: cs42l56: Use IS_ENABLED() instead of checking for built-in or module" to the asoc tree Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Javier Martinez Canillas @ 2016-04-25 23:30 UTC (permalink / raw)
To: linux-kernel
Cc: Javier Martinez Canillas, Jaroslav Kysela, alsa-devel, Mark Brown,
Brian Austin, Paul Handrigan, Takashi Iwai, Liam Girdwood
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---
sound/soc/codecs/cs42l56.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/cs42l56.c b/sound/soc/codecs/cs42l56.c
index 7cd5f769bb61..eec1ff853b98 100644
--- a/sound/soc/codecs/cs42l56.c
+++ b/sound/soc/codecs/cs42l56.c
@@ -56,7 +56,7 @@ struct cs42l56_private {
u8 iface;
u8 iface_fmt;
u8 iface_inv;
-#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE)
+#if IS_ENABLED(CONFIG_INPUT)
struct input_dev *beep;
struct work_struct beep_work;
int beep_rate;
--
2.5.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Applied "ASoC: cs42l56: Use IS_ENABLED() instead of checking for built-in or module" to the asoc tree
2016-04-25 23:30 [PATCH] ASoC: cs42l56: Use IS_ENABLED() instead of checking for built-in or module Javier Martinez Canillas
@ 2016-04-26 11:07 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2016-04-26 11:07 UTC (permalink / raw)
To: Javier Martinez Canillas
Cc: Mark Brown, linux-kernel, alsa-devel, Liam Girdwood, Takashi Iwai,
Brian Austin, Paul Handrigan
The patch
ASoC: cs42l56: Use IS_ENABLED() instead of checking for built-in or module
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 de06f22f717b30641229036439b804ae79a7ad4d Mon Sep 17 00:00:00 2001
From: Javier Martinez Canillas <javier@osg.samsung.com>
Date: Mon, 25 Apr 2016 19:30:39 -0400
Subject: [PATCH] ASoC: cs42l56: Use IS_ENABLED() instead of checking for
built-in or module
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/codecs/cs42l56.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/codecs/cs42l56.c b/sound/soc/codecs/cs42l56.c
index 7cd5f769bb61..eec1ff853b98 100644
--- a/sound/soc/codecs/cs42l56.c
+++ b/sound/soc/codecs/cs42l56.c
@@ -56,7 +56,7 @@ struct cs42l56_private {
u8 iface;
u8 iface_fmt;
u8 iface_inv;
-#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE)
+#if IS_ENABLED(CONFIG_INPUT)
struct input_dev *beep;
struct work_struct beep_work;
int beep_rate;
--
2.8.0.rc3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-26 11:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-25 23:30 [PATCH] ASoC: cs42l56: Use IS_ENABLED() instead of checking for built-in or module Javier Martinez Canillas
2016-04-26 11:07 ` Applied "ASoC: cs42l56: Use IS_ENABLED() instead of checking for built-in or module" to the asoc tree Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).