diff options
author | Jani Nikula <jani.nikula@intel.com> | 2023-08-24 16:46:02 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2023-09-01 11:47:53 +0300 |
commit | 7218779efc46cdb48c1b9f959ea5cbb06333192f (patch) | |
tree | 85e9b0bff9bcfb9627f863bd6a2e4a23de1af909 /include/drm/drm_edid.h | |
parent | a35239a8925986e83c41c92f7147e5bce00d86d5 (diff) | |
download | linux-stable-7218779efc46cdb48c1b9f959ea5cbb06333192f.tar.gz linux-stable-7218779efc46cdb48c1b9f959ea5cbb06333192f.tar.bz2 linux-stable-7218779efc46cdb48c1b9f959ea5cbb06333192f.zip |
drm/edid: add drm_edid_is_digital()
Checking edid->input & DRM_EDID_INPUT_DIGITAL is common enough to
deserve a helper that also lets us abstract the raw EDID a bit better.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/4bdb407bf189fd922be022eb2f9564692377c81d.1692884619.git.jani.nikula@intel.com
Diffstat (limited to 'include/drm/drm_edid.h')
-rw-r--r-- | include/drm/drm_edid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_edid.h b/include/drm/drm_edid.h index 169755d3de19..e8d850e77d6d 100644 --- a/include/drm/drm_edid.h +++ b/include/drm/drm_edid.h @@ -618,6 +618,7 @@ const struct drm_edid *drm_edid_read_switcheroo(struct drm_connector *connector, int drm_edid_connector_update(struct drm_connector *connector, const struct drm_edid *edid); int drm_edid_connector_add_modes(struct drm_connector *connector); +bool drm_edid_is_digital(const struct drm_edid *drm_edid); const u8 *drm_find_edid_extension(const struct drm_edid *drm_edid, int ext_id, int *ext_index); |