From c4e49f62621429a363b092d1a6df11d2cf380465 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sat, 11 Jul 2015 13:42:54 -0600 Subject: 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 Reviewed-on: http://review.coreboot.org/10885 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/include/device/dram/ddr3.h | 2 +- src/include/device/early_smbus.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/device') diff --git a/src/include/device/dram/ddr3.h b/src/include/device/dram/ddr3.h index 295ea2581d..7f969b3320 100644 --- a/src/include/device/dram/ddr3.h +++ b/src/include/device/dram/ddr3.h @@ -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, ...) diff --git a/src/include/device/early_smbus.h b/src/include/device/early_smbus.h index 437a569256..1da3f071f1 100644 --- a/src/include/device/early_smbus.h +++ b/src/include/device/early_smbus.h @@ -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, ...) -- cgit v1.2.3