chore: Replace ARRAY_LEN() with ARRAY_SIZE()

This patch removes ARRAY_LEN() and replaces them with ARRAY_SIZE().
Also fixed MISRA warning for ARRAY_SIZE().

Change-Id: Ia5438be81c2af627694669efb3007f8408e7dbb9
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
diff --git a/runtime/core/handler.c b/runtime/core/handler.c
index c8b6f15..7ea3618 100644
--- a/runtime/core/handler.c
+++ b/runtime/core/handler.c
@@ -34,7 +34,7 @@
 	RMI_STATUS_STRING(ERROR_RTT)
 };
 
-COMPILER_ASSERT(ARRAY_LEN(rmi_status_string) == RMI_ERROR_COUNT);
+COMPILER_ASSERT(ARRAY_SIZE(rmi_status_string) == RMI_ERROR_COUNT);
 
 /*
  * At this level (in handle_ns_smc) we distinguish the RMI calls only on:
@@ -155,7 +155,7 @@
 	HANDLER(RTT_SET_RIPAS,		4, 1, smc_rtt_set_ripas,	 false, true)
 };
 
-COMPILER_ASSERT(ARRAY_LEN(smc_handlers) == SMC64_NUM_FIDS_IN_RANGE(RMI));
+COMPILER_ASSERT(ARRAY_SIZE(smc_handlers) == SMC64_NUM_FIDS_IN_RANGE(RMI));
 
 static inline bool rmi_handler_needs_fpu(unsigned int id)
 {
@@ -259,7 +259,7 @@
 	if (IS_SMC64_RMI_FID(function_id)) {
 		handler_id = RMI_HANDLER_ID(function_id);
 		/* cppcheck-suppress misra-c2012-17.3 */
-		if (handler_id < ARRAY_LEN(smc_handlers)) {
+		if (handler_id < ARRAY_SIZE(smc_handlers)) {
 			handler = &smc_handlers[handler_id];
 		}
 	}