projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'iommu-updates-v4.6' of git://git.kernel.org/pub/scm/linux/kernel/git/joro...
[cascardo/linux.git]
/
tools
/
gpio
/
gpio-utils.h
diff --git
a/tools/gpio/gpio-utils.h
b/tools/gpio/gpio-utils.h
index
b18209a
..
5f57133
100644
(file)
--- 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) &&