diff options
author | Martin Roth <martinroth@google.com> | 2017-06-24 13:58:52 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2017-06-28 17:48:49 +0000 |
commit | ebade5dec9e05291f64b0687130d6fbce52270f0 (patch) | |
tree | 91ab2cd850921a58672a0876f385d653a05e906e /src/device/oprom/yabel/vbe.c | |
parent | ffdee287df7a294396f1c935e1171dad7c44dbf3 (diff) |
device/oprom/yabel: 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: I82bf68a7ee54ff88f65aacc9eb0dbc30d013aae0
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://review.coreboot.org/20337
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/device/oprom/yabel/vbe.c')
-rw-r--r-- | src/device/oprom/yabel/vbe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device/oprom/yabel/vbe.c b/src/device/oprom/yabel/vbe.c index ec999012d2..876df23dc1 100644 --- a/src/device/oprom/yabel/vbe.c +++ b/src/device/oprom/yabel/vbe.c @@ -34,7 +34,7 @@ #include <string.h> #include <types.h> -#if CONFIG_FRAMEBUFFER_SET_VESA_MODE +#if IS_ENABLED(CONFIG_FRAMEBUFFER_SET_VESA_MODE) #include <boot/coreboot_tables.h> #endif @@ -66,7 +66,7 @@ u8 *vbe_info_buffer = 0; u8 *biosmem; u32 biosmem_size; -#if CONFIG_FRAMEBUFFER_SET_VESA_MODE +#if IS_ENABLED(CONFIG_FRAMEBUFFER_SET_VESA_MODE) static inline u8 vbe_prepare(void) { @@ -734,7 +734,7 @@ void vbe_set_graphics(void) vbe_get_mode_info(&mode_info); vbe_set_mode(&mode_info); -#if CONFIG_BOOTSPLASH +#if IS_ENABLED(CONFIG_BOOTSPLASH) unsigned char *framebuffer = (unsigned char *) le32_to_cpu(mode_info.vesa.phys_base_ptr); DEBUG_PRINTF_VBE("FRAMEBUFFER: 0x%p\n", framebuffer); |