]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/edid: convert drm_mode_detailed() to drm_edid
authorJani Nikula <jani.nikula@intel.com>
Mon, 9 May 2022 12:03:08 +0000 (15:03 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 13 May 2022 15:13:16 +0000 (18:13 +0300)
We'll need to propagate drm_edid everywhere.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/6e4625d529ee4bfb2f6ebbfef5fb707d65a0554d.1652097712.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c

index d85f9eb301bd8495493869645d365b9d18ae37f0..91cca4279e3ff0f17284560f016a784a3fb81611 100644 (file)
@@ -2928,7 +2928,7 @@ drm_mode_do_interlace_quirk(struct drm_display_mode *mode,
  * drm_display_mode.
  */
 static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev,
-                                                 const struct edid *edid,
+                                                 const struct drm_edid *drm_edid,
                                                  const struct detailed_timing *timing,
                                                  u32 quirks)
 {
@@ -3016,8 +3016,8 @@ set_size:
        }
 
        if (quirks & EDID_QUIRK_DETAILED_USE_MAXIMUM_SIZE) {
-               mode->width_mm = edid->width_cm * 10;
-               mode->height_mm = edid->height_cm * 10;
+               mode->width_mm = drm_edid->edid->width_cm * 10;
+               mode->height_mm = drm_edid->edid->height_cm * 10;
        }
 
        mode->type = DRM_MODE_TYPE_DRIVER;
@@ -3493,7 +3493,7 @@ do_detailed_mode(const struct detailed_timing *timing, void *c)
                return;
 
        newmode = drm_mode_detailed(closure->connector->dev,
-                                   closure->drm_edid->edid, timing,
+                                   closure->drm_edid, timing,
                                    closure->quirks);
        if (!newmode)
                return;