power: Use ARRAY_SIZE macro where possible
Change-Id: Ie47d0e6b91b7bba378b0fdf53a345a021b0c2d48
This commit is contained in:
committed by
Michael Bestas
parent
ba1c2a36fc
commit
d62a558e09
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user