diff options
Diffstat (limited to 'power-8992.c')
-rw-r--r-- | power-8992.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/power-8992.c b/power-8992.c index f41d537..e914d7f 100644 --- a/power-8992.c +++ b/power-8992.c @@ -82,7 +82,7 @@ static int process_video_encode_hint(void* metadata) { int resource_values[] = {0x2C07, 0x2F5A, 0x2704, 0x4032}; perform_hint_action(video_encode_metadata.hint_id, resource_values, - sizeof(resource_values) / sizeof(resource_values[0])); + ARRAY_SIZE(resource_values)); return HINT_HANDLED; } } else if (video_encode_metadata.state == 0) { @@ -120,7 +120,7 @@ int set_interactive_override(int on) { if (is_interactive_governor(governor)) { int resource_values[] = {0x777}; /* 4+0 core config in display off */ perform_hint_action(DISPLAY_STATE_HINT_ID, resource_values, - sizeof(resource_values) / sizeof(resource_values[0])); + ARRAY_SIZE(resource_values)); return HINT_HANDLED; } } else { |