projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f55532a
)
ASoC: cs42l56: Use IS_ENABLED() instead of checking for built-in or module
author
Javier Martinez Canillas
<javier@osg.samsung.com>
Mon, 25 Apr 2016 23:30:39 +0000
(19:30 -0400)
committer
Mark Brown
<broonie@kernel.org>
Tue, 26 Apr 2016 11:07:43 +0000
(12:07 +0100)
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
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/cs42l56.c
b/sound/soc/codecs/cs42l56.c
index 7cd5f769bb614d207daaf26ca24efb51156d3aca..eec1ff853b98bdc1ca7c2390a9cd50ec44edbf2c 100644
(file)
--- 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;