diff options
author | Nico Huber <nico.huber@secunet.com> | 2017-05-18 16:12:07 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2017-05-22 11:07:57 +0200 |
commit | afa9aefce00551d5d6227ad0081389b972dd767f (patch) | |
tree | 537a06325971eb751349878089899bf950e65ddf /src/include/console/spi.h | |
parent | 7b811d5e3661874dfeca01901f3641eb70a95b1d (diff) |
include/console: Use IS_ENABLED() macro
Change-Id: I3d0c61c37399e96c1d154c1d3af5c47db967a07a
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/19763
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Diffstat (limited to 'src/include/console/spi.h')
-rw-r--r-- | src/include/console/spi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/console/spi.h b/src/include/console/spi.h index 4d281acd77..dd33b0f375 100644 --- a/src/include/console/spi.h +++ b/src/include/console/spi.h @@ -22,8 +22,8 @@ void spiconsole_init(void); void spiconsole_tx_byte(unsigned char c); -#define __CONSOLE_SPI_ENABLE__ (CONFIG_SPI_CONSOLE && \ - (ENV_RAMSTAGE || (ENV_SMM && CONFIG_DEBUG_SMI))) +#define __CONSOLE_SPI_ENABLE__ (IS_ENABLED(CONFIG_SPI_CONSOLE) && \ + (ENV_RAMSTAGE || (ENV_SMM && IS_ENABLED(CONFIG_DEBUG_SMI)))) #if __CONSOLE_SPI_ENABLE__ static inline void __spiconsole_init(void) { spiconsole_init(); } |