Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f300269 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown
Browse files

AsoC: wm9081: Use IS_ENABLED() macro



Using the IS_ENABLED() macro can make the code shorter and simpler.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 6ce4eac1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)
{