Unify to use ARRAY_SIZE in TF-M codes
ARRAY_SIZE(foo) is preferred over sizeof(foo)/sizeof(foo[0]).
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I6d95ceece2edc6267491923e282e28710b68ab8d
diff --git a/interface/include/psa/client.h b/interface/include/psa/client.h
index 8fd2d13..d92de02 100644
--- a/interface/include/psa/client.h
+++ b/interface/include/psa/client.h
@@ -17,6 +17,10 @@
extern "C" {
#endif
+#ifndef IOVEC_LEN
+#define IOVEC_LEN(arr) ((uint32_t)(sizeof(arr)/sizeof(arr[0])))
+#endif
+
/*********************** PSA Client Macros and Types *************************/
/**