diff options
author | Fabio Estevam <festevam@gmail.com> | 2013-11-21 15:38:42 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-11-27 19:13:24 +0100 |
commit | e42644c64c0de145ab2041ceb904e44421dd6794 (patch) | |
tree | ce6baf64f0347e145a4283b850871d13a5f2e62e /sound/soc/codecs/ssm2602.c | |
parent | Linux 3.13-rc1 (diff) | |
download | linux-e42644c64c0de145ab2041ceb904e44421dd6794.tar.xz linux-e42644c64c0de145ab2041ceb904e44421dd6794.zip |
ASoC: ssm2602: 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>
Diffstat (limited to 'sound/soc/codecs/ssm2602.c')
-rw-r--r-- | sound/soc/codecs/ssm2602.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/codecs/ssm2602.c b/sound/soc/codecs/ssm2602.c index 492644e67ace..480074d86476 100644 --- a/sound/soc/codecs/ssm2602.c +++ b/sound/soc/codecs/ssm2602.c @@ -730,7 +730,7 @@ static struct spi_driver ssm2602_spi_driver = { }; #endif -#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) +#if IS_ENABLED(CONFIG_I2C) /* * ssm2602 2 wire address is determined by GPIO5 * state during powerup. @@ -797,7 +797,7 @@ static int __init ssm2602_modinit(void) return ret; #endif -#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) +#if IS_ENABLED(CONFIG_I2C) ret = i2c_add_driver(&ssm2602_i2c_driver); if (ret) return ret; @@ -813,7 +813,7 @@ static void __exit ssm2602_exit(void) spi_unregister_driver(&ssm2602_spi_driver); #endif -#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) +#if IS_ENABLED(CONFIG_I2C) i2c_del_driver(&ssm2602_i2c_driver); #endif } |