diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2022-09-05 16:16:45 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2022-09-12 09:13:25 +0200 |
commit | d25654b3fad9906ca80912701fd4bd6e2419f54d (patch) | |
tree | 652aaf51c461aa1629c3440cacaf2b2a86dad334 /include/drm/drm_probe_helper.h | |
parent | aaa65520280e96dc47fa5065b74bddff30279abe (diff) | |
download | linux-stable-d25654b3fad9906ca80912701fd4bd6e2419f54d.tar.gz linux-stable-d25654b3fad9906ca80912701fd4bd6e2419f54d.tar.bz2 linux-stable-d25654b3fad9906ca80912701fd4bd6e2419f54d.zip |
drm/probe-helper: Add drm_connector_helper_get_modes_fixed()
Add drm_connector_helper_get_modes_fixed(), which duplicates a single
display mode for a connector. Convert drivers.
v2:
* rename 'static' and 'hw' to 'fixed' everywhere
* fix typo 'there' to 'their' (Sam)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20220905141648.22013-2-tzimmermann@suse.de
Diffstat (limited to 'include/drm/drm_probe_helper.h')
-rw-r--r-- | include/drm/drm_probe_helper.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_probe_helper.h b/include/drm/drm_probe_helper.h index 8075e02aa865..d261838a7790 100644 --- a/include/drm/drm_probe_helper.h +++ b/include/drm/drm_probe_helper.h @@ -7,6 +7,7 @@ struct drm_connector; struct drm_device; +struct drm_display_mode; struct drm_modeset_acquire_ctx; int drm_helper_probe_single_connector_modes(struct drm_connector @@ -27,6 +28,8 @@ void drm_kms_helper_poll_enable(struct drm_device *dev); bool drm_kms_helper_is_poll_worker(void); int drm_connector_helper_get_modes_from_ddc(struct drm_connector *connector); +int drm_connector_helper_get_modes_fixed(struct drm_connector *connector, + const struct drm_display_mode *fixed_mode); int drm_connector_helper_get_modes(struct drm_connector *connector); #endif |