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

@@ -60,7 +60,7 @@ int power_hint_override(power_hint_t hint, void* data) {
case POWER_HINT_INTERACTION: {
int resources[] = {0x40800100, 0x514};
int duration = 100;
interaction(duration, sizeof(resources) / sizeof(resources[0]), resources);
interaction(duration, ARRAY_SIZE(resources), resources);
ret_val = HINT_HANDLED;
}
default: