diff options
author | Kunal Joshi <kunal1.joshi@intel.com> | 2024-04-22 11:04:53 +0530 |
---|---|---|
committer | Bhanuprakash Modem <bhanuprakash.modem@intel.com> | 2024-04-23 14:19:54 +0530 |
commit | d87e69e8dd7f9206a360f46788c0de37b427ed1e (patch) | |
tree | c5d61767925b19c133ef9405d558a938c1e36d05 /lib/igt_kms.c | |
parent | 8507d0f922c202cabdda9071550999512f46c331 (diff) |
lib/igt_kms: remove unused igt_force_and_check_bigjoiner_status
remove unused igt_force_and_check_bigjoiner_status
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Cc: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Signed-off-by: Kunal Joshi <kunal1.joshi@intel.com>
Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Diffstat (limited to 'lib/igt_kms.c')
-rw-r--r-- | lib/igt_kms.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 2dcf330de..98d3fb79c 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -6337,34 +6337,6 @@ bool igt_has_force_joiner_debugfs(int drmfd, igt_output_t *output) } /** - * Forces the enable/disable state of big joiner for a specific connector. - * - * @drmfd The file descriptor of the DRM device. - * @connector_name The name of the connector. - * @enable The desired state of big joiner (true for enable, false for disable). - * Returns: - * true if writing the debugfs was successful - * and the state was set as requested, false otherwise. - */ -bool igt_force_and_check_bigjoiner_status(int drmfd, char *connector_name, bool enable) -{ - int debugfs_fd, ret; - char buf[512]; - - igt_assert_f(connector_name, "Connector name cannot be NULL\n"); - debugfs_fd = igt_debugfs_connector_dir(drmfd, connector_name, O_DIRECTORY); - igt_assert_f(debugfs_fd >= 0, "Could not open debugfs for connector %s\n", connector_name); - ret = igt_sysfs_write(debugfs_fd, "i915_bigjoiner_force_enable", enable ? "1" : "0", 1); - igt_assert_f(ret > 0, "Could not write i915_bigjoiner_force_enable for connector %s\n", connector_name); - ret = igt_debugfs_simple_read(debugfs_fd, "i915_bigjoiner_force_enable", buf, sizeof(buf)); - close(debugfs_fd); - igt_assert_f(ret > 0, "Could not read i915_bigjoiner_force_enable for connector %s\n", connector_name); - - return enable ? strstr(buf, "Y") : - strstr(buf, "N"); -} - -/** * igt_check_bigjoiner_support: * @display: a pointer to an #igt_display_t structure * |