imamnurby/smpl_train_seed8 huggingface dataset:
--- initial
+++ final
@@ -1,19 +1,19 @@
 static int adv7511_get_modes(struct adv7511 *adv7511, struct drm_connector *connector) {
   struct edid *edid;
   unsigned int count;
   /* Reading the EDID only works if the device is powered */
   if (!adv7511->powered) {
     unsigned int edid_i2c_addr = (adv7511->i2c_edid->addr << 1);
     __adv7511_power_on(adv7511);
     /* Reset the EDID_I2C_ADDR register as it might be cleared */
     regmap_write(adv7511->regmap, ADV7511_REG_EDID_I2C_ADDR, edid_i2c_addr);
   }
   edid = drm_do_get_edid(connector, adv7511_get_edid_block, adv7511);
   if (!adv7511->powered) __adv7511_power_off(adv7511);
-  drm_mode_connector_update_edid_property(connector, edid);
+  drm_connector_update_edid_property(connector, edid);
   count = drm_add_edid_modes(connector, edid);
   adv7511_set_config_csc(adv7511, connector, adv7511->rgb, drm_detect_hdmi_monitor(edid));
   cec_s_phys_addr_from_edid(adv7511->cec_adap, edid);
   kfree(edid);
   return count;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,11 +1,11 @@
 static int amdgpu_connector_ddc_get_modes(struct drm_connector *connector) {
   struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector);
   int ret;
   if (amdgpu_connector->edid) {
-    drm_mode_connector_update_edid_property(connector, amdgpu_connector->edid);
+    drm_connector_update_edid_property(connector, amdgpu_connector->edid);
     ret = drm_add_edid_modes(connector, amdgpu_connector->edid);
     return ret;
   }
-  drm_mode_connector_update_edid_property(connector, NULL);
+  drm_connector_update_edid_property(connector, NULL);
   return 0;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,25 +1,25 @@
 static int dm_dp_mst_get_modes(struct drm_connector *connector) {
   struct amdgpu_dm_connector *aconnector = to_amdgpu_dm_connector(connector);
   int ret = 0;
   if (!aconnector) return drm_add_edid_modes(connector, NULL);
   if (!aconnector->edid) {
     struct edid *edid;
     edid = drm_dp_mst_get_edid(connector, &aconnector->mst_port->mst_mgr, aconnector->port);
     if (!edid) {
-      drm_mode_connector_update_edid_property(&aconnector->base, NULL);
+      drm_connector_update_edid_property(&aconnector->base, NULL);
       return ret;
     }
     aconnector->edid = edid;
   }
   if (!aconnector->dc_sink) {
     struct dc_sink *dc_sink;
     struct dc_sink_init_data init_params = {.link = aconnector->dc_link, .sink_signal = SIGNAL_TYPE_DISPLAY_PORT_MST};
     dc_sink = dc_link_add_remote_sink(aconnector->dc_link, (uint8_t *)aconnector->edid, (aconnector->edid->extensions + 1) * EDID_LENGTH, &init_params);
     dc_sink->priv = aconnector;
     aconnector->dc_sink = dc_sink;
     if (aconnector->dc_sink) amdgpu_dm_add_sink_to_freesync_module(connector, aconnector->edid);
   }
-  drm_mode_connector_update_edid_property(&aconnector->base, aconnector->edid);
+  drm_connector_update_edid_property(&aconnector->base, aconnector->edid);
   ret = drm_add_edid_modes(connector, aconnector->edid);
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,26 +1,26 @@
 static int anx78xx_get_modes(struct drm_connector *connector) {
   struct anx78xx *anx78xx = connector_to_anx78xx(connector);
   int err, num_modes = 0;
   if (WARN_ON(!anx78xx->powered)) return 0;
   if (anx78xx->edid) return drm_add_edid_modes(connector, anx78xx->edid);
   mutex_lock(&anx78xx->lock);
   err = anx78xx_get_downstream_info(anx78xx);
   if (err) {
     DRM_ERROR("Failed to get downstream info: %d\n", err);
     goto unlock;
   }
   anx78xx->edid = drm_get_edid(connector, &anx78xx->aux.ddc);
   if (!anx78xx->edid) {
     DRM_ERROR("Failed to read EDID\n");
     goto unlock;
   }
-  err = drm_mode_connector_update_edid_property(connector, anx78xx->edid);
+  err = drm_connector_update_edid_property(connector, anx78xx->edid);
   if (err) {
     DRM_ERROR("Failed to update EDID property: %d\n", err);
     goto unlock;
   }
   num_modes = drm_add_edid_modes(connector, anx78xx->edid);
 unlock:
   mutex_unlock(&anx78xx->lock);
   return num_modes;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,26 +1,26 @@
 static int analogix_dp_get_modes(struct drm_connector *connector) {
   struct analogix_dp_device *dp = to_dp(connector);
   struct edid *edid;
   int ret, num_modes = 0;
   if (dp->plat_data->panel) {
     num_modes += drm_panel_get_modes(dp->plat_data->panel);
   } else {
     ret = analogix_dp_prepare_panel(dp, true, false);
     if (ret) {
       DRM_ERROR("Failed to prepare panel (%d)\n", ret);
       return 0;
     }
     pm_runtime_get_sync(dp->dev);
     edid = drm_get_edid(connector, &dp->aux.ddc);
     pm_runtime_put(dp->dev);
     if (edid) {
-      drm_mode_connector_update_edid_property(&dp->connector, edid);
+      drm_connector_update_edid_property(&dp->connector, edid);
       num_modes += drm_add_edid_modes(&dp->connector, edid);
       kfree(edid);
     }
     ret = analogix_dp_prepare_panel(dp, false, false);
     if (ret) DRM_ERROR("Failed to unprepare panel (%d)\n", ret);
   }
   if (dp->plat_data->get_modes) num_modes += dp->plat_data->get_modes(dp->plat_data, connector);
   return num_modes;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,26 +1,26 @@
 static int ast_get_modes(struct drm_connector *connector) {
   struct ast_connector *ast_connector = to_ast_connector(connector);
   struct ast_private *ast = connector->dev->dev_private;
   struct edid *edid;
   int ret;
   bool flags = false;
   if (ast->tx_chip_type == AST_TX_DP501) {
     ast->dp501_maxclk = 0xff;
     edid = kmalloc(128, GFP_KERNEL);
     if (!edid) return -ENOMEM;
     flags = ast_dp501_read_edid(connector->dev, (u8 *)edid);
     if (flags)
       ast->dp501_maxclk = ast_get_dp501_max_clk(connector->dev);
     else
       kfree(edid);
   }
   if (!flags) edid = drm_get_edid(connector, &ast_connector->i2c->adapter);
   if (edid) {
-    drm_mode_connector_update_edid_property(&ast_connector->base, edid);
+    drm_connector_update_edid_property(&ast_connector->base, edid);
     ret = drm_add_edid_modes(connector, edid);
     kfree(edid);
     return ret;
   } else
-    drm_mode_connector_update_edid_property(&ast_connector->base, NULL);
+    drm_connector_update_edid_property(&ast_connector->base, NULL);
   return 0;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,15 +1,15 @@
 static int cdn_dp_connector_get_modes(struct drm_connector *connector) {
   struct cdn_dp_device *dp = connector_to_dp(connector);
   struct edid *edid;
   int ret = 0;
   mutex_lock(&dp->lock);
   edid = dp->edid;
   if (edid) {
     DRM_DEV_DEBUG_KMS(dp->dev, "got edid: width[%d] x height[%d]\n", edid->width_cm, edid->height_cm);
     dp->sink_has_audio = drm_detect_monitor_audio(edid);
     ret = drm_add_edid_modes(connector, edid);
-    if (ret) drm_mode_connector_update_edid_property(connector, edid);
+    if (ret) drm_connector_update_edid_property(connector, edid);
   }
   mutex_unlock(&dp->lock);
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,42 +1,42 @@
 static int cdv_intel_dp_get_modes(struct drm_connector *connector) {
   struct gma_encoder *intel_encoder = gma_attached_encoder(connector);
   struct cdv_intel_dp *intel_dp = intel_encoder->dev_priv;
   struct edid *edid = NULL;
   int ret = 0;
   int edp = is_edp(intel_encoder);
   edid = drm_get_edid(connector, &intel_dp->adapter);
   if (edid) {
-    drm_mode_connector_update_edid_property(connector, edid);
+    drm_connector_update_edid_property(connector, edid);
     ret = drm_add_edid_modes(connector, edid);
     kfree(edid);
   }
   if (is_edp(intel_encoder)) {
     struct drm_device *dev = connector->dev;
     struct drm_psb_private *dev_priv = dev->dev_private;
 
     cdv_intel_edp_panel_vdd_off(intel_encoder);
     if (ret) {
       if (edp && !intel_dp->panel_fixed_mode) {
         struct drm_display_mode *newmode;
         list_for_each_entry(newmode, &connector->probed_modes, head) {
           if (newmode->type & DRM_MODE_TYPE_PREFERRED) {
             intel_dp->panel_fixed_mode = drm_mode_duplicate(dev, newmode);
             break;
           }
         }
       }
       return ret;
     }
     if (!intel_dp->panel_fixed_mode && dev_priv->lfp_lvds_vbt_mode) {
       intel_dp->panel_fixed_mode = drm_mode_duplicate(dev, dev_priv->lfp_lvds_vbt_mode);
       if (intel_dp->panel_fixed_mode) { intel_dp->panel_fixed_mode->type |= DRM_MODE_TYPE_PREFERRED; }
     }
     if (intel_dp->panel_fixed_mode != NULL) {
       struct drm_display_mode *mode;
       mode = drm_mode_duplicate(dev, intel_dp->panel_fixed_mode);
       drm_mode_probed_add(connector, mode);
       return 1;
     }
   }
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,12 +1,12 @@
 static int cdv_hdmi_get_modes(struct drm_connector *connector) {
   struct gma_encoder *gma_encoder = gma_attached_encoder(connector);
   struct edid *edid = NULL;
   int ret = 0;
   edid = drm_get_edid(connector, &gma_encoder->i2c_bus->adapter);
   if (edid) {
-    drm_mode_connector_update_edid_property(connector, edid);
+    drm_connector_update_edid_property(connector, edid);
     ret = drm_add_edid_modes(connector, edid);
     kfree(edid);
   }
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,11 +1,11 @@
 static int nv50_mstc_get_modes(struct drm_connector *connector) {
   struct nv50_mstc *mstc = nv50_mstc(connector);
   int ret = 0;
   mstc->edid = drm_dp_mst_get_edid(&mstc->connector, mstc->port->mgr, mstc->port);
-  drm_mode_connector_update_edid_property(&mstc->connector, mstc->edid);
+  drm_connector_update_edid_property(&mstc->connector, mstc->edid);
   if (mstc->edid) ret = drm_add_edid_modes(&mstc->connector, mstc->edid);
   if (!mstc->connector.display_info.bpc) mstc->connector.display_info.bpc = 8;
   if (mstc->native) drm_mode_destroy(mstc->connector.dev, mstc->native);
   mstc->native = nouveau_conn_native_mode(&mstc->connector);
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,22 +1,22 @@
 static ssize_t edid_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp) {
   struct seq_file *m = file->private_data;
   struct drm_connector *connector = m->private;
   char *buf;
   struct edid *edid;
   int ret;
   buf = memdup_user(ubuf, len);
   if (IS_ERR(buf)) return PTR_ERR(buf);
   edid = (struct edid *)buf;
   if (len == 5 && !strncmp(buf, "reset", 5)) {
     connector->override_edid = false;
-    ret = drm_mode_connector_update_edid_property(connector, NULL);
+    ret = drm_connector_update_edid_property(connector, NULL);
   } else if (len < EDID_LENGTH || EDID_LENGTH * (1 + edid->extensions) > len)
     ret = -EINVAL;
   else {
     connector->override_edid = false;
-    ret = drm_mode_connector_update_edid_property(connector, edid);
+    ret = drm_connector_update_edid_property(connector, edid);
     if (!ret) connector->override_edid = true;
   }
   kfree(buf);
   return (ret) ? ret : len;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,24 +1,24 @@
 static int dumb_vga_get_modes(struct drm_connector *connector) {
   struct dumb_vga *vga = drm_connector_to_dumb_vga(connector);
   struct edid *edid;
   int ret;
   if (IS_ERR(vga->ddc)) goto fallback;
   edid = drm_get_edid(connector, vga->ddc);
   if (!edid) {
     DRM_INFO("EDID readout failed, falling back to standard modes\n");
     goto fallback;
   }
-  drm_mode_connector_update_edid_property(connector, edid);
+  drm_connector_update_edid_property(connector, edid);
   ret = drm_add_edid_modes(connector, edid);
   kfree(edid);
   return ret;
 fallback:
   /*
    * In case we cannot retrieve the EDIDs (broken or missing i2c
    * bus), fallback on the XGA standards
    */
   ret = drm_add_modes_noedid(connector, 1920, 1200);
   /* And prefer a mode pretty much anyone can handle */
   drm_set_preferred_mode(connector, 1024, 768);
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,19 +1,19 @@
 static int dw_hdmi_connector_get_modes(struct drm_connector *connector) {
   struct dw_hdmi *hdmi = container_of(connector, struct dw_hdmi, connector);
   struct edid *edid;
   int ret = 0;
   if (!hdmi->ddc) return 0;
   edid = drm_get_edid(connector, hdmi->ddc);
   if (edid) {
     dev_dbg(hdmi->dev, "got edid: width[%d] x height[%d]\n", edid->width_cm, edid->height_cm);
     hdmi->sink_is_hdmi = drm_detect_hdmi_monitor(edid);
     hdmi->sink_has_audio = drm_detect_monitor_audio(edid);
-    drm_mode_connector_update_edid_property(connector, edid);
+    drm_connector_update_edid_property(connector, edid);
     cec_notifier_set_phys_addr_from_edid(hdmi->cec_notifier, edid);
     ret = drm_add_edid_modes(connector, edid);
     kfree(edid);
   } else {
     dev_dbg(hdmi->dev, "failed to get edid\n");
   }
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,12 +1,12 @@
 static int edp_connector_get_modes(struct drm_connector *connector) {
   struct edp_connector *edp_connector = to_edp_connector(connector);
   struct msm_edp *edp = edp_connector->edp;
   struct edid *drm_edid = NULL;
   int ret = 0;
   DBG("");
   ret = msm_edp_ctrl_get_panel_info(edp->ctrl, connector, &drm_edid);
   if (ret) return ret;
-  drm_mode_connector_update_edid_property(connector, drm_edid);
+  drm_connector_update_edid_property(connector, drm_edid);
   if (drm_edid) ret = drm_add_edid_modes(connector, drm_edid);
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,21 +1,21 @@
 static int vidi_get_modes(struct drm_connector *connector) {
   struct vidi_context *ctx = ctx_from_connector(connector);
   struct edid *edid;
   int edid_len;
   /*
    * the edid data comes from user side and it would be set
    * to ctx->raw_edid through specific ioctl.
    */
   if (!ctx->raw_edid) {
     DRM_DEBUG_KMS("raw_edid is null.\n");
     return -EFAULT;
   }
   edid_len = (1 + ctx->raw_edid->extensions) * EDID_LENGTH;
   edid = kmemdup(ctx->raw_edid, edid_len, GFP_KERNEL);
   if (!edid) {
     DRM_DEBUG_KMS("failed to allocate edid\n");
     return -ENOMEM;
   }
-  drm_mode_connector_update_edid_property(connector, edid);
+  drm_connector_update_edid_property(connector, edid);
   return drm_add_edid_modes(connector, edid);
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,15 +1,15 @@
 static int hdmi_get_modes(struct drm_connector *connector) {
   struct hdmi_context *hdata = connector_to_hdmi(connector);
   struct edid *edid;
   int ret;
   if (!hdata->ddc_adpt) return -ENODEV;
   edid = drm_get_edid(connector, hdata->ddc_adpt);
   if (!edid) return -ENODEV;
   hdata->dvi_mode = !drm_detect_hdmi_monitor(edid);
   DRM_DEBUG_KMS("%s : width[%d] x height[%d]\n", (hdata->dvi_mode ? "dvi monitor" : "hdmi monitor"), edid->width_cm, edid->height_cm);
-  drm_mode_connector_update_edid_property(connector, edid);
+  drm_connector_update_edid_property(connector, edid);
   cec_notifier_set_phys_addr_from_edid(hdata->notifier, edid);
   ret = drm_add_edid_modes(connector, edid);
   kfree(edid);
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,18 +1,18 @@
 static int msm_hdmi_connector_get_modes(struct drm_connector *connector) {
   struct hdmi_connector *hdmi_connector = to_hdmi_connector(connector);
   struct hdmi *hdmi = hdmi_connector->hdmi;
   struct edid *edid;
   uint32_t hdmi_ctrl;
   int ret = 0;
   hdmi_ctrl = hdmi_read(hdmi, REG_HDMI_CTRL);
   hdmi_write(hdmi, REG_HDMI_CTRL, hdmi_ctrl | HDMI_CTRL_ENABLE);
   edid = drm_get_edid(connector, hdmi->i2c);
   hdmi_write(hdmi, REG_HDMI_CTRL, hdmi_ctrl);
   hdmi->hdmi_mode = drm_detect_hdmi_monitor(edid);
-  drm_mode_connector_update_edid_property(connector, edid);
+  drm_connector_update_edid_property(connector, edid);
   if (edid) {
     ret = drm_add_edid_modes(connector, edid);
     kfree(edid);
   }
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,23 +1,23 @@
 static int imx_ldb_connector_get_modes(struct drm_connector *connector) {
   struct imx_ldb_channel *imx_ldb_ch = con_to_imx_ldb_ch(connector);
   int num_modes = 0;
   if (imx_ldb_ch->panel && imx_ldb_ch->panel->funcs && imx_ldb_ch->panel->funcs->get_modes) {
     num_modes = imx_ldb_ch->panel->funcs->get_modes(imx_ldb_ch->panel);
     if (num_modes > 0) return num_modes;
   }
   if (!imx_ldb_ch->edid && imx_ldb_ch->ddc) imx_ldb_ch->edid = drm_get_edid(connector, imx_ldb_ch->ddc);
   if (imx_ldb_ch->edid) {
-    drm_mode_connector_update_edid_property(connector, imx_ldb_ch->edid);
+    drm_connector_update_edid_property(connector, imx_ldb_ch->edid);
     num_modes = drm_add_edid_modes(connector, imx_ldb_ch->edid);
   }
   if (imx_ldb_ch->mode_valid) {
     struct drm_display_mode *mode;
     mode = drm_mode_create(connector->dev);
     if (!mode) return -EINVAL;
     drm_mode_copy(mode, &imx_ldb_ch->mode);
     mode->type |= DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED;
     drm_mode_probed_add(connector, mode);
     num_modes++;
   }
   return num_modes;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,13 +1,13 @@
 static int imx_tve_connector_get_modes(struct drm_connector *connector) {
   struct imx_tve *tve = con_to_tve(connector);
   struct edid *edid;
   int ret = 0;
   if (!tve->ddc) return 0;
   edid = drm_get_edid(connector, tve->ddc);
   if (edid) {
-    drm_mode_connector_update_edid_property(connector, edid);
+    drm_connector_update_edid_property(connector, edid);
     ret = drm_add_edid_modes(connector, edid);
     kfree(edid);
   }
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,15 +1,15 @@
 static int inno_hdmi_connector_get_modes(struct drm_connector *connector) {
   struct inno_hdmi *hdmi = to_inno_hdmi(connector);
   struct edid *edid;
   int ret = 0;
   if (!hdmi->ddc) return 0;
   edid = drm_get_edid(connector, hdmi->ddc);
   if (edid) {
     hdmi->hdmi_data.sink_is_hdmi = drm_detect_hdmi_monitor(edid);
     hdmi->hdmi_data.sink_has_audio = drm_detect_monitor_audio(edid);
-    drm_mode_connector_update_edid_property(connector, edid);
+    drm_connector_update_edid_property(connector, edid);
     ret = drm_add_edid_modes(connector, edid);
     kfree(edid);
   }
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,6 +1,6 @@
 int intel_connector_update_modes(struct drm_connector *connector, struct edid *edid) {
   int ret;
-  drm_mode_connector_update_edid_property(connector, edid);
+  drm_connector_update_edid_property(connector, edid);
   ret = drm_add_edid_modes(connector, edid);
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,20 +1,20 @@
 static void intel_sdvo_get_ddc_modes(struct drm_connector *connector) {
   struct edid *edid;
   DRM_DEBUG_KMS("[CONNECTOR:%d:%s]\n", connector->base.id, connector->name);
   /* set the bus switch and get the modes */
   edid = intel_sdvo_get_edid(connector);
   /*
    * Mac mini hack.  On this device, the DVI-I connector shares one DDC
    * link between analog and digital outputs. So, if the regular SDVO
    * DDC fails, check to see if the analog output is disconnected, in
    * which case we'll look there for the digital DDC data.
    */
   if (edid == NULL) edid = intel_sdvo_get_analog_edid(connector);
   if (edid != NULL) {
     if (intel_sdvo_connector_matches_edid(to_intel_sdvo_connector(connector), edid)) {
-      drm_mode_connector_update_edid_property(connector, edid);
+      drm_connector_update_edid_property(connector, edid);
       drm_add_edid_modes(connector, edid);
     }
     kfree(edid);
   }
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,12 +1,12 @@
 static int ge_b850v3_lvds_get_modes(struct drm_connector *connector) {
   struct i2c_client *client;
   int num_modes = 0;
   client = ge_b850v3_lvds_ptr->stdp2690_i2c;
   kfree(ge_b850v3_lvds_ptr->edid);
   ge_b850v3_lvds_ptr->edid = (struct edid *)stdp2690_get_edid(client);
   if (ge_b850v3_lvds_ptr->edid) {
-    drm_mode_connector_update_edid_property(connector, ge_b850v3_lvds_ptr->edid);
+    drm_connector_update_edid_property(connector, ge_b850v3_lvds_ptr->edid);
     num_modes = drm_add_edid_modes(connector, ge_b850v3_lvds_ptr->edid);
   }
   return num_modes;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,12 +1,12 @@
 static int mga_vga_get_modes(struct drm_connector *connector) {
   struct mga_connector *mga_connector = to_mga_connector(connector);
   struct edid *edid;
   int ret = 0;
   edid = drm_get_edid(connector, &mga_connector->i2c->adapter);
   if (edid) {
-    drm_mode_connector_update_edid_property(connector, edid);
+    drm_connector_update_edid_property(connector, edid);
     ret = drm_add_edid_modes(connector, edid);
     kfree(edid);
   }
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)
--- initial
+++ final
@@ -1,13 +1,13 @@
 static int mtk_hdmi_conn_get_modes(struct drm_connector *conn) {
   struct mtk_hdmi *hdmi = hdmi_ctx_from_conn(conn);
   struct edid *edid;
   int ret;
   if (!hdmi->ddc_adpt) return -ENODEV;
   edid = drm_get_edid(conn, hdmi->ddc_adpt);
   if (!edid) return -ENODEV;
   hdmi->dvi_mode = !drm_detect_monitor_audio(edid);
-  drm_mode_connector_update_edid_property(conn, edid);
+  drm_connector_update_edid_property(conn, edid);
   ret = drm_add_edid_modes(conn, edid);
   kfree(edid);
   return ret;
 }<sep>@@
expression e1,e2;
@@
-       drm_mode_connector_update_edid_property
+       drm_connector_update_edid_property
		(e1,e2)