Skip to content

Commit c3e8494

Browse files
Fabio Estevambroonie
authored andcommitted
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>
1 parent 6ce4eac commit c3e8494

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎sound/soc/codecs/wm8962.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct wm8962_priv {
7474
struct regulator_bulk_data supplies[WM8962_NUM_SUPPLIES];
7575
struct notifier_block disable_nb[WM8962_NUM_SUPPLIES];
7676

77-
#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE)
77+
#if IS_ENABLED(CONFIG_INPUT)
7878
struct input_dev *beep;
7979
struct work_struct beep_work;
8080
int beep_rate;
@@ -3108,7 +3108,7 @@ int wm8962_mic_detect(struct snd_soc_codec *codec, struct snd_soc_jack *jack)
31083108
}
31093109
EXPORT_SYMBOL_GPL(wm8962_mic_detect);
31103110

3111-
#if defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE)
3111+
#if IS_ENABLED(CONFIG_INPUT)
31123112
static int beep_rates[] = {
31133113
500, 1000, 2000, 4000,
31143114
};

0 commit comments

Comments
 (0)