diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-04-26 20:22:33 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-04-27 00:36:47 +0300 |
commit | dd485951e79a6dcbf18ba1612ad91d45e4cfa9a7 (patch) | |
tree | 1f85ea2018a3edc9b61464955af89e3c4e15827e /drivers/i2c/busses/i2c-nforce2.c | |
parent | 2b899f34e1db9adef8716d07e872a800dfa60790 (diff) | |
download | linux-dd485951e79a6dcbf18ba1612ad91d45e4cfa9a7.tar.xz |
i2c: nforce2: Use IS_ENABLED() instead of checking for built-in or module
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-nforce2.c')
-rw-r--r-- | drivers/i2c/busses/i2c-nforce2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-nforce2.c b/drivers/i2c/busses/i2c-nforce2.c index 70b3c9158509..42fcc9458432 100644 --- a/drivers/i2c/busses/i2c-nforce2.c +++ b/drivers/i2c/busses/i2c-nforce2.c @@ -127,7 +127,7 @@ static struct pci_driver nforce2_driver; /* For multiplexing support, we need a global reference to the 1st SMBus channel */ -#if defined CONFIG_I2C_NFORCE2_S4985 || defined CONFIG_I2C_NFORCE2_S4985_MODULE +#if IS_ENABLED(CONFIG_I2C_NFORCE2_S4985) struct i2c_adapter *nforce2_smbus; EXPORT_SYMBOL_GPL(nforce2_smbus); |