summaryrefslogtreecommitdiff
path: root/src/drivers/uart
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2017-06-24 14:07:25 -0600
committerMartin Roth <martinroth@google.com>2017-07-13 23:54:48 +0000
commit32c27c2f850c64cdbf78acd00f0c2ce4b535af64 (patch)
tree02eb0815d631f0f0e4859c3f43c6c81e3253feb1 /src/drivers/uart
parente6ff1596e7417d24746162b3a567bcb6dd9ef988 (diff)
downloadcoreboot-32c27c2f850c64cdbf78acd00f0c2ce4b535af64.tar.xz
src/drivers: add IS_ENABLED() around Kconfig symbol references
Some of these can be changed from #if to if(), but that will happen in a follow-on commmit. Change-Id: Ib3a1cf04482a8f19b159c31cfb16a7b492748d91 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20352 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/drivers/uart')
-rw-r--r--src/drivers/uart/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/uart/util.c b/src/drivers/uart/util.c
index e1b83ba59d..f0f885d532 100644
--- a/src/drivers/uart/util.c
+++ b/src/drivers/uart/util.c
@@ -13,14 +13,14 @@
#include <console/console.h>
#include <console/uart.h>
-#if CONFIG_USE_OPTION_TABLE
+#if IS_ENABLED(CONFIG_USE_OPTION_TABLE)
#include <option.h>
#include "option_table.h"
#endif
unsigned int default_baudrate(void)
{
-#if !defined(__SMM__) && CONFIG_USE_OPTION_TABLE
+#if !defined(__SMM__) && IS_ENABLED(CONFIG_USE_OPTION_TABLE)
static const unsigned baud[8] =
{ 115200, 57600, 38400, 19200, 9600, 4800, 2400, 1200 };
unsigned b_index = 0;