diff options
author | Jani Nikula <jani.nikula@intel.com> | 2022-10-24 15:33:33 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2022-10-26 09:53:08 +0300 |
commit | 91ec9ab4a6e3fff7b33f145c6b08f1e3c27d1c46 (patch) | |
tree | 27b5f362a6cf85a169f75e1e9244b0b373f00b1b /drivers/gpu/drm/drm_debugfs.c | |
parent | 2c9332de05612a766dfd956f79430c02702cad0c (diff) | |
download | lwn-91ec9ab4a6e3fff7b33f145c6b08f1e3c27d1c46.tar.gz lwn-91ec9ab4a6e3fff7b33f145c6b08f1e3c27d1c46.zip |
drm/edid: abstract debugfs override EDID show better
Add a function to dump the override EDID in debugfs. This hides the
override EDID management better in drm_edid.c.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/74defa7b595f51e6c1f2eacd9c799d567d29f053.1666614699.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/drm_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/drm_debugfs.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c index 01ee3febb813..ee445f4605ba 100644 --- a/drivers/gpu/drm/drm_debugfs.c +++ b/drivers/gpu/drm/drm_debugfs.c @@ -328,13 +328,7 @@ static ssize_t connector_write(struct file *file, const char __user *ubuf, static int edid_show(struct seq_file *m, void *data) { - struct drm_connector *connector = m->private; - struct drm_property_blob *edid = connector->edid_blob_ptr; - - if (connector->override_edid && edid) - seq_write(m, edid->data, edid->length); - - return 0; + return drm_edid_override_show(m->private, m); } static int edid_open(struct inode *inode, struct file *file) |