Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1387749 > unrolled thread

[PATCH] i2c: nforce2: Use IS_ENABLED() instead of checking for built-in or module

Started byJavier Martinez Canillas <javier@osg.samsung.com>
First post2016-04-26 19:30 +0200
Last post2016-04-26 23:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] i2c: nforce2: Use IS_ENABLED() instead of checking for built-in or module Javier Martinez Canillas <javier@osg.samsung.com> - 2016-04-26 19:30 +0200
    Re: [PATCH] i2c: nforce2: Use IS_ENABLED() instead of checking for  built-in or module Wolfram Sang <wsa@the-dreams.de> - 2016-04-26 23:40 +0200

#1387749 — [PATCH] i2c: nforce2: Use IS_ENABLED() instead of checking for built-in or module

FromJavier Martinez Canillas <javier@osg.samsung.com>
Date2016-04-26 19:30 +0200
Subject[PATCH] i2c: nforce2: Use IS_ENABLED() instead of checking for built-in or module
Message-ID<rseYb-34w-41@gated-at.bofh.it>
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>

---

 drivers/i2c/busses/i2c-nforce2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 
-- 
2.5.5

[toc] | [next] | [standalone]


#1388119 — Re: [PATCH] i2c: nforce2: Use IS_ENABLED() instead of checking for built-in or module

FromWolfram Sang <wsa@the-dreams.de>
Date2016-04-26 23:40 +0200
SubjectRe: [PATCH] i2c: nforce2: Use IS_ENABLED() instead of checking for built-in or module
Message-ID<rsiS6-6t0-23@gated-at.bofh.it>
In reply to#1387749

[Multipart message — attachments visible in raw view] — view raw

On Tue, Apr 26, 2016 at 01:22:33PM -0400, Javier Martinez Canillas wrote:
> 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>
> 

Applied to for-next, thanks!

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web