summaryrefslogtreecommitdiff
path: root/tools/gpio/gpio-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpio/gpio-utils.h')
-rw-r--r--tools/gpio/gpio-utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gpio/gpio-utils.h b/tools/gpio/gpio-utils.h
index b18209a45ad3..5f57133b8c04 100644
--- a/tools/gpio/gpio-utils.h
+++ b/tools/gpio/gpio-utils.h
@@ -16,6 +16,8 @@
#include <string.h>
+#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
+
static inline int check_prefix(const char *str, const char *prefix)
{
return strlen(str) > strlen(prefix) &&