From fa1e81380b3d70ef4291d61ed0d30075668e320c Mon Sep 17 00:00:00 2001 From: Brendan Le Foll Date: Mon, 16 Jun 2014 18:45:43 +0100 Subject: [PATCH] intel_galileo_rev_d.c: change magic number to macro in header Signed-off-by: Brendan Le Foll --- src/intel_galileo_rev_d.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel_galileo_rev_d.c b/src/intel_galileo_rev_d.c index 67aaaae..effff42 100644 --- a/src/intel_galileo_rev_d.c +++ b/src/intel_galileo_rev_d.c @@ -26,6 +26,7 @@ #include #include "common.h" +#include "intel_galileo_rev_d.h" maa_board_t* maa_intel_galileo_rev_d() @@ -38,7 +39,7 @@ maa_intel_galileo_rev_d() b->gpio_count = 14; b->aio_count = 6; - b->pins = (maa_pininfo_t*) malloc(sizeof(maa_pininfo_t)*25); + b->pins = (maa_pininfo_t*) malloc(sizeof(maa_pininfo_t)*MAA_INTEL_GALILEO_REV_D_PINCOUNT); //GPIO IO0 - IO10 strncpy(b->pins[0].name, "IO0", 8);