diff options
author | Adam Jackson <ajax@redhat.com> | 2012-04-13 16:33:29 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-04-20 07:56:51 -0400 |
commit | 33c7531df850869a7b623d4dfcfcb7e2ab873844 (patch) | |
tree | d7de446a0b037d9c2b479c3793e05b65427e1b78 | |
parent | a31546e25563b13f2a5d7216ec83da93ecf6d1ca (diff) |
drm/edid: Document drm_mode_find_dmt
Signed-off-by: Adam Jackson <ajax@redhat.com>
Tested-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/drm_edid.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index e07491088400..a75aefef528e 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c | |||
@@ -486,6 +486,16 @@ static void edid_fixup_preferred(struct drm_connector *connector, | |||
486 | preferred_mode->type |= DRM_MODE_TYPE_PREFERRED; | 486 | preferred_mode->type |= DRM_MODE_TYPE_PREFERRED; |
487 | } | 487 | } |
488 | 488 | ||
489 | /* | ||
490 | * drm_mode_find_dmt - Create a copy of a mode if present in DMT | ||
491 | * @dev: Device to duplicate against | ||
492 | * @hsize: Mode width | ||
493 | * @vsize: Mode height | ||
494 | * @fresh: Mode refresh rate | ||
495 | * | ||
496 | * Walk the DMT mode list looking for a match for the given parameters. | ||
497 | * Return a newly allocated copy of the mode, or NULL if not found. | ||
498 | */ | ||
489 | struct drm_display_mode *drm_mode_find_dmt(struct drm_device *dev, | 499 | struct drm_display_mode *drm_mode_find_dmt(struct drm_device *dev, |
490 | int hsize, int vsize, int fresh) | 500 | int hsize, int vsize, int fresh) |
491 | { | 501 | { |