Skip to content

Commit 3f30026

Browse files
Fabio Estevambroonie
authored andcommitted
AsoC: wm9081: 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 3f30026

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/soc/codecs/wm9081.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,7 @@ static const struct regmap_config wm9081_regmap = {
13261326
.cache_type = REGCACHE_RBTREE,
13271327
};
13281328

1329-
#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
1329+
#if IS_ENABLED(CONFIG_I2C)
13301330
static int wm9081_i2c_probe(struct i2c_client *i2c,
13311331
const struct i2c_device_id *id)
13321332
{

0 commit comments

Comments
 (0)