diff options
author | Ankit Nautiyal <ankit.k.nautiyal@intel.com> | 2020-06-24 11:11:30 +0530 |
---|---|---|
committer | Ramalingam C <ramalingam.c@intel.com> | 2020-06-26 14:36:44 +0530 |
commit | af1ef32bfae90bcdbaf1b5d84c61ff4e04368505 (patch) | |
tree | 7a7b85fa43e624fee822633bc669569569da836b /tests/kms_flip.c | |
parent | 66e2683a03a62828d3480dd0f6f235a72a34ff8c (diff) |
lib: Use generic names for APIs that handle uevents
The functions for handling uevents are named with "_hotplug" as suffix
such as igt_watch_hotplug(). Earlier hotplug was the only uevent that
was requested to be detected, but in fact, these APIs are generic and
can be used for detecting other uevents too.
Currently we have tests like kms_lease, kms_content_protection using
the uevent handling infrastructure for detecting uevents other than
hotplug.
This patch renames the functions and replace the "_hotplug" suffix
with "_uevents".
v2: Rebase
v3: Added changes in lib igt_chamelium.c, that was missed earlier.
Signed-off-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Suggested-by: Ramalingam C <ramalingam.c@intel.com>
Suggested-by: Hiler, Arkadiusz <arkadiusz.hiler@intel.com>
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
Acked-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Diffstat (limited to 'tests/kms_flip.c')
-rwxr-xr-x | tests/kms_flip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c index b7b42f85..3a7314ad 100755 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1212,7 +1212,7 @@ static void calibrate_ts(struct test_output *o, int crtc_idx) static void __run_test_on_crtc_set(struct test_output *o, int *crtc_idxs, int crtc_count, int duration_ms) { - struct udev_monitor *mon = igt_watch_hotplug(); + struct udev_monitor *mon = igt_watch_uevents(); unsigned bo_size = 0; bool vblank = true; bool retried = false; @@ -1261,7 +1261,7 @@ static void __run_test_on_crtc_set(struct test_output *o, int *crtc_idxs, retry: kmstest_unset_all_crtcs(drm_fd, resources); - igt_flush_hotplugs(mon); + igt_flush_uevents(mon); if (set_mode(o, o->fb_ids[0], 0, 0)) { /* We may fail to apply the mode if there are hidden @@ -1351,7 +1351,7 @@ out: free_test_output(o); - igt_cleanup_hotplug(mon); + igt_cleanup_uevents(mon); } static void run_test_on_crtc_set(struct test_output *o, int *crtc_idxs, |