Change #ifdef and #if defined CONFIG_ bools to #if IS_ENABLED()

Kconfigs symbols of type bool are always defined, and can be tested with
the IS_ENABLED() macro.

symbol type except string.

Change-Id: Ic4ba79f519ee2a53d39c10859bbfa9c32015b19d
Signed-off-by: Martin Roth <gaumless@gmail.com>
Reviewed-on: http://review.coreboot.org/10885
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Martin Roth
2015-07-11 13:42:54 -06:00
committed by Stefan Reinauer
parent d139c48a23
commit c4e49f6262
11 changed files with 29 additions and 29 deletions

View File

@ -55,7 +55,7 @@
* disabled.
* @{
*/
#if defined(CONFIG_DEBUG_RAM_SETUP) && (CONFIG_DEBUG_RAM_SETUP)
#if IS_ENABLED(CONFIG_DEBUG_RAM_SETUP)
#define printram(x, ...) printk(BIOS_DEBUG, x, ##__VA_ARGS__)
#else
#define printram(x, ...)

View File

@ -55,7 +55,7 @@
/**
* \brief printk macro for SMBus debugging
*/
#if defined(CONFIG_DEBUG_SMBUS) && (CONFIG_DEBUG_SMBUS)
#if IS_ENABLED(CONFIG_DEBUG_SMBUS)
#define printsmbus(x, ...) printk(BIOS_DEBUG, x, ##__VA_ARGS__)
#else
#define printsmbus(x, ...)