projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce4eac
)
ASoC: cs42l52: Use IS_ENABLED() macro
author
Fabio Estevam
<fabio.estevam@freescale.com>
Thu, 21 Nov 2013 14:38:39 +0000
(12:38 -0200)
committer
Mark Brown
<broonie@linaro.org>
Wed, 27 Nov 2013 18:47:01 +0000
(18:47 +0000)
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>
sound/soc/codecs/cs42l52.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/cs42l52.c
b/sound/soc/codecs/cs42l52.c
index 8b427c97708365e5e1e40aad701f740b62c365be..19ee10b6d6ca56575fe1cdcab9484edbb15e4113 100644
(file)
--- a/
sound/soc/codecs/cs42l52.c
+++ b/
sound/soc/codecs/cs42l52.c
@@
-50,7
+50,7
@@
struct cs42l52_private {
u8 mclksel;
u32 mclk;
u8 flags;
-#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;
@@
-953,7
+953,7
@@
static int cs42l52_resume(struct snd_soc_codec *codec)
return 0;
}
-#if
defined(CONFIG_INPUT) || defined(CONFIG_INPUT_MODULE
)
+#if
IS_ENABLED(CONFIG_INPUT
)
static int beep_rates[] = {
261, 522, 585, 667, 706, 774, 889, 1000,
1043, 1200, 1333, 1412, 1600, 1714, 2000, 2182