[PATCH i-g-t 3/9] lib/igt_kms: add enum kmstest_force_type

Kunal Joshi kunal1.joshi at intel.com
Wed Apr 10 06:44:20 UTC 2024


add enum to seperate out force_type,
@FORCED_CONNECTOR: Uses sysfs and
@FORCED_CONNECTOR_DEBUGFS: Uses debugfs

Cc: Ville Syrjälä <ville.syrjala at linux.intel.com>
Cc: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
Cc: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Cc: Karthik B S <karthik.b.s at intel.com>
Signed-off-by: Kunal Joshi <kunal1.joshi at intel.com>
---
 lib/igt_kms.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/lib/igt_kms.h b/lib/igt_kms.h
index 6d13e5851..561edf98b 100644
--- a/lib/igt_kms.h
+++ b/lib/igt_kms.h
@@ -245,6 +245,17 @@ enum kmstest_force_connector_state {
 	FORCE_CONNECTOR_OFF
 };
 
+/**
+ * kmstest_force_type:
+ * @FORCED_CONNECTOR: Uses sysfs
+ * @FORCED_CONNECTOR_DEBUGFS: Uses debugfs
+ */
+enum kmstest_force_type {
+	FORCED_CONNECTOR,
+	FORCED_CONNECTOR_DEBUGFS,
+	FORCED_CONNECTOR_MAX
+};
+
 /**
  * intel_broadcast_rgb_mode:
  * @BROADCAST_RGB_AUTO: Choose the color range to use automatically
-- 
2.34.1



More information about the igt-dev mailing list