提交 de06f22f 编写于 作者: J Javier Martinez Canillas 提交者: Mark Brown

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: NJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 f55532a0
...@@ -56,7 +56,7 @@ struct cs42l56_private { ...@@ -56,7 +56,7 @@ struct cs42l56_private {
u8 iface; u8 iface;
u8 iface_fmt; u8 iface_fmt;
u8 iface_inv; u8 iface_inv;
#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE) #if IS_ENABLED(CONFIG_INPUT)
struct input_dev *beep; struct input_dev *beep;
struct work_struct beep_work; struct work_struct beep_work;
int beep_rate; int beep_rate;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册