stats: Spwan igt_init_with_size() from igt_init()

It's all about good looking APIs.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
Damien Lespiau
2015-06-27 17:49:40 +01:00
parent 00432ff260
commit 66e0bf66da
4 changed files with 35 additions and 17 deletions
+1 -1
View File
@@ -866,7 +866,7 @@ static void test_run(struct test_ops *test)
unsigned p_odd_even[2] = { 0, 0 };
igt_stats_t stats;
igt_stats_init(&stats, ARRAY_SIZE(modes));
igt_stats_init_with_size(&stats, ARRAY_SIZE(modes));
igt_stats_set_population(&stats, true);
for (m = 0; m < ARRAY_SIZE(modes); m++) {