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: wm9081: Use IS_ENABLED() macro
author
Fabio Estevam
<fabio.estevam@freescale.com>
Thu, 21 Nov 2013 14:48:32 +0000
(12:48 -0200)
committer
Mark Brown
<broonie@linaro.org>
Wed, 27 Nov 2013 18:21:44 +0000
(18:21 +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/wm9081.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/wm9081.c
b/sound/soc/codecs/wm9081.c
index 630b3d776ec27133cd54f2c3dd440ae304c83417..0982c1d38ec458205628b2fdd52ccc87a499db97 100644
(file)
--- a/
sound/soc/codecs/wm9081.c
+++ b/
sound/soc/codecs/wm9081.c
@@
-1326,7
+1326,7
@@
static const struct regmap_config wm9081_regmap = {
.cache_type = REGCACHE_RBTREE,
};
-#if
defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE
)
+#if
IS_ENABLED(CONFIG_I2C
)
static int wm9081_i2c_probe(struct i2c_client *i2c,
const struct i2c_device_id *id)
{