summaryrefslogtreecommitdiff
path: root/payloads/libpayload/include
diff options
context:
space:
mode:
authorNico Huber <nico.huber@secunet.com>2012-11-12 16:59:24 +0100
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-11-15 18:51:17 +0100
commitdd5979ab4330d8677ad250ec4afcd7cb10c83cbc (patch)
treecf8e293c022e0cc2e0403aa426e76841253fbe91 /payloads/libpayload/include
parentff73306ec2612f11d408bf9d708153bb45975ad3 (diff)
downloadcoreboot-dd5979ab4330d8677ad250ec4afcd7cb10c83cbc.tar.xz
libpayload: Use #ifdef for CONFIG_* checks
Libpayload uses the linux kernel's config style, where CONFIG_* defines don't get written for unset tristates. Change-Id: I3f832cf86bca9a1e153d96af4bf6434a19eba2f6 Signed-off-by: Nico Huber <nico.huber@secunet.com> Reviewed-on: http://review.coreboot.org/1847 Tested-by: build bot (Jenkins) Reviewed-by: Anton Kochkov <anton.kochkov@gmail.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r--payloads/libpayload/include/sysinfo.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/payloads/libpayload/include/sysinfo.h b/payloads/libpayload/include/sysinfo.h
index bb5b2eea68..80763f0a46 100644
--- a/payloads/libpayload/include/sysinfo.h
+++ b/payloads/libpayload/include/sysinfo.h
@@ -57,7 +57,7 @@ struct sysinfo_t {
u32 cmos_range_start;
u32 cmos_range_end;
u32 cmos_checksum_location;
-#if CONFIG_CHROMEOS
+#ifdef CONFIG_CHROMEOS
u32 vbnv_start;
u32 vbnv_size;
#endif
@@ -77,7 +77,7 @@ struct sysinfo_t {
struct cb_framebuffer *framebuffer;
-#if CONFIG_CHROMEOS
+#ifdef CONFIG_CHROMEOS
int num_gpios;
struct cb_gpio gpios[SYSINFO_MAX_GPIOS];
#endif
@@ -87,7 +87,7 @@ struct sysinfo_t {
struct cb_header *header;
struct cb_mainboard *mainboard;
-#if CONFIG_CHROMEOS
+#ifdef CONFIG_CHROMEOS
void *vdat_addr;
u32 vdat_size;
#endif