power: Use ARRAY_SIZE macro where possible

Change-Id: Ie47d0e6b91b7bba378b0fdf53a345a021b0c2d48
This commit is contained in:
Zhao Wei Liew
2016-06-26 11:37:59 +08:00
committed by Michael Bestas
parent ba1c2a36fc
commit d62a558e09
7 changed files with 18 additions and 24 deletions

View File

@@ -52,6 +52,8 @@ bool is_expensive_rendering_supported();
void set_expensive_rendering(bool enabled);
void set_interactive(int on);
#define ARRAY_SIZE(x) (sizeof((x)) / sizeof((x)[0]))
#ifdef __cplusplus
}
#endif