diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2013-11-14 13:40:52 -0200 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2013-11-14 19:59:30 -0200 |
commit | a8610a4776e9bee9bf3fc275febaf78e3ec38c98 (patch) | |
tree | 1ecd3136715ea0b5d8c49310279c8514538aa910 | |
parent | 19c8d5f4ff887c55cb79b0417912ca137cf1b2e5 (diff) |
tests/pm_pc8: rename some variables
Since we're not only testing PC8 anymore, we're resting "PM", rename
some variables from something_pc8 to something_suspend, just to make
it not-so-confusing.
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
-rw-r--r-- | tests/pm_pc8.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests/pm_pc8.c b/tests/pm_pc8.c index 391f1db7..0299ad92 100644 --- a/tests/pm_pc8.c +++ b/tests/pm_pc8.c @@ -797,29 +797,29 @@ static void modeset_subtest(enum screen_type type, int rounds, int wait_flags) * connected. */ static void drm_resources_equal_subtest(void) { - struct compare_data pre_pc8, during_pc8, post_pc8; + struct compare_data pre_suspend, during_suspend, post_suspend; enable_one_screen(&ms_data); igt_assert(wait_for_active()); - get_drm_info(&pre_pc8); + get_drm_info(&pre_suspend); igt_assert(wait_for_active()); disable_all_screens(&ms_data); igt_assert(wait_for_suspended()); - get_drm_info(&during_pc8); + get_drm_info(&during_suspend); igt_assert(wait_for_suspended()); enable_one_screen(&ms_data); igt_assert(wait_for_active()); - get_drm_info(&post_pc8); + get_drm_info(&post_suspend); igt_assert(wait_for_active()); - assert_drm_infos_equal(&pre_pc8, &during_pc8); - assert_drm_infos_equal(&pre_pc8, &post_pc8); + assert_drm_infos_equal(&pre_suspend, &during_suspend); + assert_drm_infos_equal(&pre_suspend, &post_suspend); - free_drm_info(&pre_pc8); - free_drm_info(&during_pc8); - free_drm_info(&post_pc8); + free_drm_info(&pre_suspend); + free_drm_info(&during_suspend); + free_drm_info(&post_suspend); } static void i2c_subtest_check_environment(void) @@ -859,11 +859,11 @@ static void i2c_subtest(void) * thing to do on Haswell, so don't do this test on the default case. */ static void register_compare_subtest(void) { - struct compare_registers pre_pc8, post_pc8; + struct compare_registers pre_suspend, post_suspend; enable_one_screen(&ms_data); igt_assert(wait_for_active()); - get_registers(&pre_pc8); + get_registers(&pre_suspend); igt_assert(wait_for_active()); disable_all_screens(&ms_data); @@ -872,10 +872,10 @@ static void register_compare_subtest(void) igt_assert(wait_for_active()); /* Wait for the registers to be restored. */ sleep(1); - get_registers(&post_pc8); + get_registers(&post_suspend); igt_assert(wait_for_active()); - compare_registers(&pre_pc8, &post_pc8); + compare_registers(&pre_suspend, &post_suspend); } static void read_full_file(const char *name) |