util: Consolidate ARRAY_SIZE() definitions
ARRAY_SIZE() was defined several times around the code-base.
Provide a single definition in util.h and include it where necessary.
Change-Id: Idc4cf030969ffc7f0928c6897a23962a70adcf05
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/config.c b/config.c
index 15c08bc..ed7f052 100644
--- a/config.c
+++ b/config.c
@@ -34,8 +34,7 @@
#include "config.h"
#include "config-internal.h"
-
-#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
+#include "util.h"
static const char *config_default_filename = SYSCONFDIR "/obmc-console.conf";