diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2013-11-20 18:37:41 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-11-24 14:51:52 +0100 |
commit | c3e8494c001ce0bec0ebaa49c6f5eeb2aa5ab36a (patch) | |
tree | 2f2ce90e3aa1cb218476e2b462d32119c76bb372 | |
parent | Linux 3.13-rc1 (diff) | |
download | linux-c3e8494c001ce0bec0ebaa49c6f5eeb2aa5ab36a.tar.xz linux-c3e8494c001ce0bec0ebaa49c6f5eeb2aa5ab36a.zip |
ASoC: wm8962: 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>
-rw-r--r-- | sound/soc/codecs/wm8962.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8962.c b/sound/soc/codecs/wm8962.c index 543c5c2631b6..07da601f8343 100644 --- a/sound/soc/codecs/wm8962.c +++ b/sound/soc/codecs/wm8962.c @@ -74,7 +74,7 @@ struct wm8962_priv { struct regulator_bulk_data supplies[WM8962_NUM_SUPPLIES]; struct notifier_block disable_nb[WM8962_NUM_SUPPLIES]; -#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; @@ -3108,7 +3108,7 @@ int wm8962_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack) } EXPORT_SYMBOL_GPL(wm8962_mic_detect); -#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE) +#if IS_ENABLED(CONFIG_INPUT) static int beep_rates[] = { 500, 1000, 2000, 4000, }; |