Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: cs42l52: Use IS_ENABLED() macro

Using the IS_ENABLED() macro can make the code shorter and simpler.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Fabio Estevam and committed by
Mark Brown
7ae10ed2 6ce4eac1

+2 -2
+2 -2
sound/soc/codecs/cs42l52.c
··· 50 50 u8 mclksel; 51 51 u32 mclk; 52 52 u8 flags; 53 - #if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE) 53 + #if IS_ENABLED(CONFIG_INPUT) 54 54 struct input_dev *beep; 55 55 struct work_struct beep_work; 56 56 int beep_rate; ··· 953 953 return 0; 954 954 } 955 955 956 - #if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE) 956 + #if IS_ENABLED(CONFIG_INPUT) 957 957 static int beep_rates[] = { 958 958 261, 522, 585, 667, 706, 774, 889, 1000, 959 959 1043, 1200, 1333, 1412, 1600, 1714, 2000, 2182