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 /lib/igt_chamelium.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 'lib/igt_chamelium.c')
-rw-r--r-- | lib/igt_chamelium.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/igt_chamelium.c b/lib/igt_chamelium.c index ed92bc782..58e01ab72 100644 --- a/lib/igt_chamelium.c +++ b/lib/igt_chamelium.c @@ -330,7 +330,7 @@ static xmlrpc_value *__chamelium_rpc_va(struct chamelium *chamelium, if (fsm_port) { monitor_args.chamelium = chamelium; monitor_args.port = fsm_port; - monitor_args.mon = igt_watch_hotplug(); + monitor_args.mon = igt_watch_uevents(); pthread_create(&fsm_thread_id, NULL, chamelium_fsm_mon, &monitor_args); } @@ -358,7 +358,7 @@ static xmlrpc_value *__chamelium_rpc_va(struct chamelium *chamelium, if (fsm_port) { pthread_cancel(fsm_thread_id); pthread_join(fsm_thread_id, NULL); - igt_cleanup_hotplug(monitor_args.mon); + igt_cleanup_uevents(monitor_args.mon); } return res; |