diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-07-09 04:40:07 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2018-07-13 12:40:27 -0400 |
commit | cde4c44d8769c1be16074c097592c46c7d64092b (patch) | |
tree | a5580486ad6fb6a4e9c2095cc06c90f16d96449e | |
parent | c555f02371c338b06752577aebf738dbdb6907bd (diff) |
drm: drop _mode_ from drm_mode_connector_attach_encoder
Again to align with the usual prefix of just drm_connector_. Again
done with sed + manual fixup for indent issues.
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180709084016.23750-7-daniel.vetter@ffwll.ch
86 files changed, 94 insertions, 97 deletions
diff --git a/Documentation/gpu/drm-kms.rst b/Documentation/gpu/drm-kms.rst index 514939433004..58eed08fbe31 100644 --- a/Documentation/gpu/drm-kms.rst +++ b/Documentation/gpu/drm-kms.rst | |||
@@ -466,7 +466,7 @@ Output discovery and initialization example | |||
466 | drm_encoder_init(dev, &intel_output->enc, &intel_crt_enc_funcs, | 466 | drm_encoder_init(dev, &intel_output->enc, &intel_crt_enc_funcs, |
467 | DRM_MODE_ENCODER_DAC); | 467 | DRM_MODE_ENCODER_DAC); |
468 | 468 | ||
469 | drm_mode_connector_attach_encoder(&intel_output->base, | 469 | drm_connector_attach_encoder(&intel_output->base, |
470 | &intel_output->enc); | 470 | &intel_output->enc); |
471 | 471 | ||
472 | /* Set up the DDC bus. */ | 472 | /* Set up the DDC bus. */ |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c index 94138abe093b..ae8fac34f7a5 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c | |||
@@ -46,7 +46,7 @@ amdgpu_link_encoder_connector(struct drm_device *dev) | |||
46 | list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { | 46 | list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { |
47 | amdgpu_encoder = to_amdgpu_encoder(encoder); | 47 | amdgpu_encoder = to_amdgpu_encoder(encoder); |
48 | if (amdgpu_encoder->devices & amdgpu_connector->devices) { | 48 | if (amdgpu_encoder->devices & amdgpu_connector->devices) { |
49 | drm_mode_connector_attach_encoder(connector, encoder); | 49 | drm_connector_attach_encoder(connector, encoder); |
50 | if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { | 50 | if (amdgpu_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) { |
51 | amdgpu_atombios_encoder_init_backlight(amdgpu_encoder, connector); | 51 | amdgpu_atombios_encoder_init_backlight(amdgpu_encoder, connector); |
52 | adev->mode_info.bl_encoder = amdgpu_encoder; | 52 | adev->mode_info.bl_encoder = amdgpu_encoder; |
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c index 016f15093173..677e96a56330 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c | |||
@@ -627,7 +627,7 @@ static int dce_virtual_connector_encoder_init(struct amdgpu_device *adev, | |||
627 | drm_connector_register(connector); | 627 | drm_connector_register(connector); |
628 | 628 | ||
629 | /* link them */ | 629 | /* link them */ |
630 | drm_mode_connector_attach_encoder(connector, encoder); | 630 | drm_connector_attach_encoder(connector, encoder); |
631 | 631 | ||
632 | return 0; | 632 | return 0; |
633 | } | 633 | } |
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index c4ab19831344..ae09331eed00 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | |||
@@ -3615,7 +3615,7 @@ static int amdgpu_dm_connector_init(struct amdgpu_display_manager *dm, | |||
3615 | link, | 3615 | link, |
3616 | link_index); | 3616 | link_index); |
3617 | 3617 | ||
3618 | drm_mode_connector_attach_encoder( | 3618 | drm_connector_attach_encoder( |
3619 | &aconnector->base, &aencoder->base); | 3619 | &aconnector->base, &aencoder->base); |
3620 | 3620 | ||
3621 | drm_connector_register(&aconnector->base); | 3621 | drm_connector_register(&aconnector->base); |
diff --git a/drivers/gpu/drm/arc/arcpgu_sim.c b/drivers/gpu/drm/arc/arcpgu_sim.c index b8f6f9a5dfbe..68629e614990 100644 --- a/drivers/gpu/drm/arc/arcpgu_sim.c +++ b/drivers/gpu/drm/arc/arcpgu_sim.c | |||
@@ -99,7 +99,7 @@ int arcpgu_drm_sim_init(struct drm_device *drm, struct device_node *np) | |||
99 | goto error_encoder_cleanup; | 99 | goto error_encoder_cleanup; |
100 | } | 100 | } |
101 | 101 | ||
102 | ret = drm_mode_connector_attach_encoder(connector, encoder); | 102 | ret = drm_connector_attach_encoder(connector, encoder); |
103 | if (ret < 0) { | 103 | if (ret < 0) { |
104 | dev_err(drm->dev, "could not attach connector to encoder\n"); | 104 | dev_err(drm->dev, "could not attach connector to encoder\n"); |
105 | drm_connector_unregister(connector); | 105 | drm_connector_unregister(connector); |
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index 1bb8174ad155..5e77d456d9bb 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c | |||
@@ -900,7 +900,7 @@ static int ast_connector_init(struct drm_device *dev) | |||
900 | connector->polled = DRM_CONNECTOR_POLL_CONNECT; | 900 | connector->polled = DRM_CONNECTOR_POLL_CONNECT; |
901 | 901 | ||
902 | encoder = list_first_entry(&dev->mode_config.encoder_list, struct drm_encoder, head); | 902 | encoder = list_first_entry(&dev->mode_config.encoder_list, struct drm_encoder, head); |
903 | drm_mode_connector_attach_encoder(connector, encoder); | 903 | drm_connector_attach_encoder(connector, encoder); |
904 | 904 | ||
905 | ast_connector->i2c = ast_i2c_create(dev); | 905 | ast_connector->i2c = ast_i2c_create(dev); |
906 | if (!ast_connector->i2c) | 906 | if (!ast_connector->i2c) |
diff --git a/drivers/gpu/drm/bochs/bochs_kms.c b/drivers/gpu/drm/bochs/bochs_kms.c index 233980a78591..ca5a9afdd5cf 100644 --- a/drivers/gpu/drm/bochs/bochs_kms.c +++ b/drivers/gpu/drm/bochs/bochs_kms.c | |||
@@ -259,7 +259,7 @@ int bochs_kms_init(struct bochs_device *bochs) | |||
259 | bochs_crtc_init(bochs->dev); | 259 | bochs_crtc_init(bochs->dev); |
260 | bochs_encoder_init(bochs->dev); | 260 | bochs_encoder_init(bochs->dev); |
261 | bochs_connector_init(bochs->dev); | 261 | bochs_connector_init(bochs->dev); |
262 | drm_mode_connector_attach_encoder(&bochs->connector, | 262 | drm_connector_attach_encoder(&bochs->connector, |
263 | &bochs->encoder); | 263 | &bochs->encoder); |
264 | 264 | ||
265 | return 0; | 265 | return 0; |
diff --git a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c index 1f4745953aca..6437b878724a 100644 --- a/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c +++ b/drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | |||
@@ -860,7 +860,7 @@ static int adv7511_bridge_attach(struct drm_bridge *bridge) | |||
860 | } | 860 | } |
861 | drm_connector_helper_add(&adv->connector, | 861 | drm_connector_helper_add(&adv->connector, |
862 | &adv7511_connector_helper_funcs); | 862 | &adv7511_connector_helper_funcs); |
863 | drm_mode_connector_attach_encoder(&adv->connector, bridge->encoder); | 863 | drm_connector_attach_encoder(&adv->connector, bridge->encoder); |
864 | 864 | ||
865 | if (adv->type == ADV7533) | 865 | if (adv->type == ADV7533) |
866 | ret = adv7533_attach_dsi(adv); | 866 | ret = adv7533_attach_dsi(adv); |
diff --git a/drivers/gpu/drm/bridge/analogix-anx78xx.c b/drivers/gpu/drm/bridge/analogix-anx78xx.c index 37f947dcadec..f8433c93f463 100644 --- a/drivers/gpu/drm/bridge/analogix-anx78xx.c +++ b/drivers/gpu/drm/bridge/analogix-anx78xx.c | |||
@@ -1048,8 +1048,8 @@ static int anx78xx_bridge_attach(struct drm_bridge *bridge) | |||
1048 | 1048 | ||
1049 | anx78xx->connector.polled = DRM_CONNECTOR_POLL_HPD; | 1049 | anx78xx->connector.polled = DRM_CONNECTOR_POLL_HPD; |
1050 | 1050 | ||
1051 | err = drm_mode_connector_attach_encoder(&anx78xx->connector, | 1051 | err = drm_connector_attach_encoder(&anx78xx->connector, |
1052 | bridge->encoder); | 1052 | bridge->encoder); |
1053 | if (err) { | 1053 | if (err) { |
1054 | DRM_ERROR("Failed to link up connector to encoder: %d\n", err); | 1054 | DRM_ERROR("Failed to link up connector to encoder: %d\n", err); |
1055 | return err; | 1055 | return err; |
diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index 288c015f7460..d68986cea132 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | |||
@@ -1210,7 +1210,7 @@ static int analogix_dp_bridge_attach(struct drm_bridge *bridge) | |||
1210 | 1210 | ||
1211 | drm_connector_helper_add(connector, | 1211 | drm_connector_helper_add(connector, |
1212 | &analogix_dp_connector_helper_funcs); | 1212 | &analogix_dp_connector_helper_funcs); |
1213 | drm_mode_connector_attach_encoder(connector, encoder); | 1213 | drm_connector_attach_encoder(connector, encoder); |
1214 | } | 1214 | } |
1215 | 1215 | ||
1216 | /* | 1216 | /* |
diff --git a/drivers/gpu/drm/bridge/dumb-vga-dac.c b/drivers/gpu/drm/bridge/dumb-vga-dac.c index da99b8ba4ee1..9b706789a341 100644 --- a/drivers/gpu/drm/bridge/dumb-vga-dac.c +++ b/drivers/gpu/drm/bridge/dumb-vga-dac.c | |||
@@ -122,7 +122,7 @@ static int dumb_vga_attach(struct drm_bridge *bridge) | |||
122 | return ret; | 122 | return ret; |
123 | } | 123 | } |
124 | 124 | ||
125 | drm_mode_connector_attach_encoder(&vga->connector, | 125 | drm_connector_attach_encoder(&vga->connector, |
126 | bridge->encoder); | 126 | bridge->encoder); |
127 | 127 | ||
128 | return 0; | 128 | return 0; |
diff --git a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c index b49b543bd1f6..2136c97aeb8e 100644 --- a/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c +++ b/drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c | |||
@@ -241,7 +241,7 @@ static int ge_b850v3_lvds_attach(struct drm_bridge *bridge) | |||
241 | return ret; | 241 | return ret; |
242 | } | 242 | } |
243 | 243 | ||
244 | ret = drm_mode_connector_attach_encoder(connector, bridge->encoder); | 244 | ret = drm_connector_attach_encoder(connector, bridge->encoder); |
245 | if (ret) | 245 | if (ret) |
246 | return ret; | 246 | return ret; |
247 | 247 | ||
diff --git a/drivers/gpu/drm/bridge/nxp-ptn3460.c b/drivers/gpu/drm/bridge/nxp-ptn3460.c index bd5c191858cb..a3e817abace1 100644 --- a/drivers/gpu/drm/bridge/nxp-ptn3460.c +++ b/drivers/gpu/drm/bridge/nxp-ptn3460.c | |||
@@ -265,7 +265,7 @@ static int ptn3460_bridge_attach(struct drm_bridge *bridge) | |||
265 | drm_connector_helper_add(&ptn_bridge->connector, | 265 | drm_connector_helper_add(&ptn_bridge->connector, |
266 | &ptn3460_connector_helper_funcs); | 266 | &ptn3460_connector_helper_funcs); |
267 | drm_connector_register(&ptn_bridge->connector); | 267 | drm_connector_register(&ptn_bridge->connector); |
268 | drm_mode_connector_attach_encoder(&ptn_bridge->connector, | 268 | drm_connector_attach_encoder(&ptn_bridge->connector, |
269 | bridge->encoder); | 269 | bridge->encoder); |
270 | 270 | ||
271 | if (ptn_bridge->panel) | 271 | if (ptn_bridge->panel) |
diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c index 6d99d4a3beb3..7cbaba213ef6 100644 --- a/drivers/gpu/drm/bridge/panel.c +++ b/drivers/gpu/drm/bridge/panel.c | |||
@@ -79,7 +79,7 @@ static int panel_bridge_attach(struct drm_bridge *bridge) | |||
79 | return ret; | 79 | return ret; |
80 | } | 80 | } |
81 | 81 | ||
82 | drm_mode_connector_attach_encoder(&panel_bridge->connector, | 82 | drm_connector_attach_encoder(&panel_bridge->connector, |
83 | bridge->encoder); | 83 | bridge->encoder); |
84 | 84 | ||
85 | ret = drm_panel_attach(panel_bridge->panel, &panel_bridge->connector); | 85 | ret = drm_panel_attach(panel_bridge->panel, &panel_bridge->connector); |
diff --git a/drivers/gpu/drm/bridge/parade-ps8622.c b/drivers/gpu/drm/bridge/parade-ps8622.c index 81198f5e9afa..7334d1b62b71 100644 --- a/drivers/gpu/drm/bridge/parade-ps8622.c +++ b/drivers/gpu/drm/bridge/parade-ps8622.c | |||
@@ -503,7 +503,7 @@ static int ps8622_attach(struct drm_bridge *bridge) | |||
503 | drm_connector_helper_add(&ps8622->connector, | 503 | drm_connector_helper_add(&ps8622->connector, |
504 | &ps8622_connector_helper_funcs); | 504 | &ps8622_connector_helper_funcs); |
505 | drm_connector_register(&ps8622->connector); | 505 | drm_connector_register(&ps8622->connector); |
506 | drm_mode_connector_attach_encoder(&ps8622->connector, | 506 | drm_connector_attach_encoder(&ps8622->connector, |
507 | bridge->encoder); | 507 | bridge->encoder); |
508 | 508 | ||
509 | if (ps8622->panel) | 509 | if (ps8622->panel) |
diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm/bridge/sii902x.c index cd331933c230..e59a13542333 100644 --- a/drivers/gpu/drm/bridge/sii902x.c +++ b/drivers/gpu/drm/bridge/sii902x.c | |||
@@ -324,7 +324,7 @@ static int sii902x_bridge_attach(struct drm_bridge *bridge) | |||
324 | else | 324 | else |
325 | sii902x->connector.polled = DRM_CONNECTOR_POLL_CONNECT; | 325 | sii902x->connector.polled = DRM_CONNECTOR_POLL_CONNECT; |
326 | 326 | ||
327 | drm_mode_connector_attach_encoder(&sii902x->connector, bridge->encoder); | 327 | drm_connector_attach_encoder(&sii902x->connector, bridge->encoder); |
328 | 328 | ||
329 | return 0; | 329 | return 0; |
330 | } | 330 | } |
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index ab32aceb6f24..5971976284bf 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | |||
@@ -1974,7 +1974,7 @@ static int dw_hdmi_bridge_attach(struct drm_bridge *bridge) | |||
1974 | drm_connector_init(bridge->dev, connector, &dw_hdmi_connector_funcs, | 1974 | drm_connector_init(bridge->dev, connector, &dw_hdmi_connector_funcs, |
1975 | DRM_MODE_CONNECTOR_HDMIA); | 1975 | DRM_MODE_CONNECTOR_HDMIA); |
1976 | 1976 | ||
1977 | drm_mode_connector_attach_encoder(connector, encoder); | 1977 | drm_connector_attach_encoder(connector, encoder); |
1978 | 1978 | ||
1979 | return 0; | 1979 | return 0; |
1980 | } | 1980 | } |
diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index ee2fd0a349b3..8e28e738cb52 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c | |||
@@ -1195,7 +1195,7 @@ static int tc_bridge_attach(struct drm_bridge *bridge) | |||
1195 | 1195 | ||
1196 | drm_display_info_set_bus_formats(&tc->connector.display_info, | 1196 | drm_display_info_set_bus_formats(&tc->connector.display_info, |
1197 | &bus_format, 1); | 1197 | &bus_format, 1); |
1198 | drm_mode_connector_attach_encoder(&tc->connector, tc->bridge.encoder); | 1198 | drm_connector_attach_encoder(&tc->connector, tc->bridge.encoder); |
1199 | 1199 | ||
1200 | return 0; | 1200 | return 0; |
1201 | } | 1201 | } |
diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c index c81bf7910bbe..c3e32138c6bb 100644 --- a/drivers/gpu/drm/bridge/ti-tfp410.c +++ b/drivers/gpu/drm/bridge/ti-tfp410.c | |||
@@ -132,7 +132,7 @@ static int tfp410_attach(struct drm_bridge *bridge) | |||
132 | return ret; | 132 | return ret; |
133 | } | 133 | } |
134 | 134 | ||
135 | drm_mode_connector_attach_encoder(&dvi->connector, | 135 | drm_connector_attach_encoder(&dvi->connector, |
136 | bridge->encoder); | 136 | bridge->encoder); |
137 | 137 | ||
138 | return 0; | 138 | return 0; |
diff --git a/drivers/gpu/drm/cirrus/cirrus_mode.c b/drivers/gpu/drm/cirrus/cirrus_mode.c index b529f8c8e2a6..336bfda40125 100644 --- a/drivers/gpu/drm/cirrus/cirrus_mode.c +++ b/drivers/gpu/drm/cirrus/cirrus_mode.c | |||
@@ -530,7 +530,7 @@ int cirrus_modeset_init(struct cirrus_device *cdev) | |||
530 | return -1; | 530 | return -1; |
531 | } | 531 | } |
532 | 532 | ||
533 | drm_mode_connector_attach_encoder(connector, encoder); | 533 | drm_connector_attach_encoder(connector, encoder); |
534 | 534 | ||
535 | ret = cirrus_fbdev_init(cdev); | 535 | ret = cirrus_fbdev_init(cdev); |
536 | if (ret) { | 536 | if (ret) { |
diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index b2b182ffdbe9..8997792e2e23 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c | |||
@@ -48,7 +48,7 @@ | |||
48 | * | 48 | * |
49 | * Connectors must be attached to an encoder to be used. For devices that map | 49 | * Connectors must be attached to an encoder to be used. For devices that map |
50 | * connectors to encoders 1:1, the connector should be attached at | 50 | * connectors to encoders 1:1, the connector should be attached at |
51 | * initialization time with a call to drm_mode_connector_attach_encoder(). The | 51 | * initialization time with a call to drm_connector_attach_encoder(). The |
52 | * driver must also set the &drm_connector.encoder field to point to the | 52 | * driver must also set the &drm_connector.encoder field to point to the |
53 | * attached encoder. | 53 | * attached encoder. |
54 | * | 54 | * |
@@ -291,7 +291,7 @@ out_put: | |||
291 | EXPORT_SYMBOL(drm_connector_init); | 291 | EXPORT_SYMBOL(drm_connector_init); |
292 | 292 | ||
293 | /** | 293 | /** |
294 | * drm_mode_connector_attach_encoder - attach a connector to an encoder | 294 | * drm_connector_attach_encoder - attach a connector to an encoder |
295 | * @connector: connector to attach | 295 | * @connector: connector to attach |
296 | * @encoder: encoder to attach @connector to | 296 | * @encoder: encoder to attach @connector to |
297 | * | 297 | * |
@@ -302,8 +302,8 @@ EXPORT_SYMBOL(drm_connector_init); | |||
302 | * Returns: | 302 | * Returns: |
303 | * Zero on success, negative errno on failure. | 303 | * Zero on success, negative errno on failure. |
304 | */ | 304 | */ |
305 | int drm_mode_connector_attach_encoder(struct drm_connector *connector, | 305 | int drm_connector_attach_encoder(struct drm_connector *connector, |
306 | struct drm_encoder *encoder) | 306 | struct drm_encoder *encoder) |
307 | { | 307 | { |
308 | int i; | 308 | int i; |
309 | 309 | ||
@@ -329,7 +329,7 @@ int drm_mode_connector_attach_encoder(struct drm_connector *connector, | |||
329 | } | 329 | } |
330 | return -ENOMEM; | 330 | return -ENOMEM; |
331 | } | 331 | } |
332 | EXPORT_SYMBOL(drm_mode_connector_attach_encoder); | 332 | EXPORT_SYMBOL(drm_connector_attach_encoder); |
333 | 333 | ||
334 | /** | 334 | /** |
335 | * drm_connector_has_possible_encoder - check if the connector and encoder are assosicated with each other | 335 | * drm_connector_has_possible_encoder - check if the connector and encoder are assosicated with each other |
diff --git a/drivers/gpu/drm/drm_simple_kms_helper.c b/drivers/gpu/drm/drm_simple_kms_helper.c index b72fcf1e9605..51fa978f0d23 100644 --- a/drivers/gpu/drm/drm_simple_kms_helper.c +++ b/drivers/gpu/drm/drm_simple_kms_helper.c | |||
@@ -287,7 +287,7 @@ int drm_simple_display_pipe_init(struct drm_device *dev, | |||
287 | if (ret || !connector) | 287 | if (ret || !connector) |
288 | return ret; | 288 | return ret; |
289 | 289 | ||
290 | return drm_mode_connector_attach_encoder(connector, encoder); | 290 | return drm_connector_attach_encoder(connector, encoder); |
291 | } | 291 | } |
292 | EXPORT_SYMBOL(drm_simple_display_pipe_init); | 292 | EXPORT_SYMBOL(drm_simple_display_pipe_init); |
293 | 293 | ||
diff --git a/drivers/gpu/drm/drm_writeback.c b/drivers/gpu/drm/drm_writeback.c index 69e7a63cfcc3..169746f6b567 100644 --- a/drivers/gpu/drm/drm_writeback.c +++ b/drivers/gpu/drm/drm_writeback.c | |||
@@ -202,7 +202,7 @@ int drm_writeback_connector_init(struct drm_device *dev, | |||
202 | if (ret) | 202 | if (ret) |
203 | goto connector_fail; | 203 | goto connector_fail; |
204 | 204 | ||
205 | ret = drm_mode_connector_attach_encoder(connector, | 205 | ret = drm_connector_attach_encoder(connector, |
206 | &wb_connector->encoder); | 206 | &wb_connector->encoder); |
207 | if (ret) | 207 | if (ret) |
208 | goto attach_fail; | 208 | goto attach_fail; |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dpi.c b/drivers/gpu/drm/exynos/exynos_drm_dpi.c index 5887e8522b70..2f0babb67c51 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dpi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dpi.c | |||
@@ -113,7 +113,7 @@ static int exynos_dpi_create_connector(struct drm_encoder *encoder) | |||
113 | } | 113 | } |
114 | 114 | ||
115 | drm_connector_helper_add(connector, &exynos_dpi_connector_helper_funcs); | 115 | drm_connector_helper_add(connector, &exynos_dpi_connector_helper_funcs); |
116 | drm_mode_connector_attach_encoder(connector, encoder); | 116 | drm_connector_attach_encoder(connector, encoder); |
117 | 117 | ||
118 | return 0; | 118 | return 0; |
119 | } | 119 | } |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 809e1e0447df..a1ed6146a3b5 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c | |||
@@ -1479,7 +1479,7 @@ static int exynos_dsi_create_connector(struct drm_encoder *encoder) | |||
1479 | 1479 | ||
1480 | connector->status = connector_status_disconnected; | 1480 | connector->status = connector_status_disconnected; |
1481 | drm_connector_helper_add(connector, &exynos_dsi_connector_helper_funcs); | 1481 | drm_connector_helper_add(connector, &exynos_dsi_connector_helper_funcs); |
1482 | drm_mode_connector_attach_encoder(connector, encoder); | 1482 | drm_connector_attach_encoder(connector, encoder); |
1483 | 1483 | ||
1484 | return 0; | 1484 | return 0; |
1485 | } | 1485 | } |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos/exynos_drm_vidi.c index dfea61edba4a..19697c1362d8 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_vidi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_vidi.c | |||
@@ -344,7 +344,7 @@ static int vidi_create_connector(struct drm_encoder *encoder) | |||
344 | } | 344 | } |
345 | 345 | ||
346 | drm_connector_helper_add(connector, &vidi_connector_helper_funcs); | 346 | drm_connector_helper_add(connector, &vidi_connector_helper_funcs); |
347 | drm_mode_connector_attach_encoder(connector, encoder); | 347 | drm_connector_attach_encoder(connector, encoder); |
348 | 348 | ||
349 | return 0; | 349 | return 0; |
350 | } | 350 | } |
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 6672d0ff0423..3a11c719a580 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c | |||
@@ -951,7 +951,7 @@ static int hdmi_create_connector(struct drm_encoder *encoder) | |||
951 | } | 951 | } |
952 | 952 | ||
953 | drm_connector_helper_add(connector, &hdmi_connector_helper_funcs); | 953 | drm_connector_helper_add(connector, &hdmi_connector_helper_funcs); |
954 | drm_mode_connector_attach_encoder(connector, encoder); | 954 | drm_connector_attach_encoder(connector, encoder); |
955 | 955 | ||
956 | if (hdata->bridge) { | 956 | if (hdata->bridge) { |
957 | ret = drm_bridge_attach(encoder, hdata->bridge, NULL); | 957 | ret = drm_bridge_attach(encoder, hdata->bridge, NULL); |
diff --git a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c index 681e2a07d03b..2298ed2a9e1c 100644 --- a/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c +++ b/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | |||
@@ -117,7 +117,7 @@ static int fsl_dcu_attach_panel(struct fsl_dcu_drm_device *fsl_dev, | |||
117 | if (ret < 0) | 117 | if (ret < 0) |
118 | goto err_cleanup; | 118 | goto err_cleanup; |
119 | 119 | ||
120 | ret = drm_mode_connector_attach_encoder(connector, encoder); | 120 | ret = drm_connector_attach_encoder(connector, encoder); |
121 | if (ret < 0) | 121 | if (ret < 0) |
122 | goto err_sysfs; | 122 | goto err_sysfs; |
123 | 123 | ||
diff --git a/drivers/gpu/drm/gma500/gma_display.c b/drivers/gpu/drm/gma500/gma_display.c index 08f17f85b801..09c1161a7ac6 100644 --- a/drivers/gpu/drm/gma500/gma_display.c +++ b/drivers/gpu/drm/gma500/gma_display.c | |||
@@ -665,7 +665,7 @@ void gma_connector_attach_encoder(struct gma_connector *connector, | |||
665 | struct gma_encoder *encoder) | 665 | struct gma_encoder *encoder) |
666 | { | 666 | { |
667 | connector->encoder = encoder; | 667 | connector->encoder = encoder; |
668 | drm_mode_connector_attach_encoder(&connector->base, | 668 | drm_connector_attach_encoder(&connector->base, |
669 | &encoder->base); | 669 | &encoder->base); |
670 | } | 670 | } |
671 | 671 | ||
diff --git a/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c b/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c index a05c020602bd..d0bf5a1e94e8 100644 --- a/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c +++ b/drivers/gpu/drm/gma500/mdfld_dsi_dpi.c | |||
@@ -999,7 +999,7 @@ struct mdfld_dsi_encoder *mdfld_dsi_dpi_init(struct drm_device *dev, | |||
999 | p_funcs->encoder_helper_funcs); | 999 | p_funcs->encoder_helper_funcs); |
1000 | 1000 | ||
1001 | /*attach to given connector*/ | 1001 | /*attach to given connector*/ |
1002 | drm_mode_connector_attach_encoder(connector, encoder); | 1002 | drm_connector_attach_encoder(connector, encoder); |
1003 | 1003 | ||
1004 | /*set possible crtcs and clones*/ | 1004 | /*set possible crtcs and clones*/ |
1005 | if (dsi_connector->pipe) { | 1005 | if (dsi_connector->pipe) { |
diff --git a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c index d2f4749ebf8d..744956cea749 100644 --- a/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c +++ b/drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_vdac.c | |||
@@ -133,7 +133,7 @@ int hibmc_vdac_init(struct hibmc_drm_private *priv) | |||
133 | } | 133 | } |
134 | 134 | ||
135 | drm_encoder_helper_add(encoder, &hibmc_encoder_helper_funcs); | 135 | drm_encoder_helper_add(encoder, &hibmc_encoder_helper_funcs); |
136 | drm_mode_connector_attach_encoder(connector, encoder); | 136 | drm_connector_attach_encoder(connector, encoder); |
137 | 137 | ||
138 | return 0; | 138 | return 0; |
139 | } | 139 | } |
diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index d434f576e6b2..eecdc327b9f8 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++ b/drivers/gpu/drm/i2c/tda998x_drv.c | |||
@@ -1301,7 +1301,7 @@ static int tda998x_connector_init(struct tda998x_priv *priv, | |||
1301 | if (ret) | 1301 | if (ret) |
1302 | return ret; | 1302 | return ret; |
1303 | 1303 | ||
1304 | drm_mode_connector_attach_encoder(&priv->connector, &priv->encoder); | 1304 | drm_connector_attach_encoder(&priv->connector, &priv->encoder); |
1305 | 1305 | ||
1306 | return 0; | 1306 | return 0; |
1307 | } | 1307 | } |
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 694a4703042f..fbe5a6572d7d 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -15899,8 +15899,7 @@ void intel_connector_attach_encoder(struct intel_connector *connector, | |||
15899 | struct intel_encoder *encoder) | 15899 | struct intel_encoder *encoder) |
15900 | { | 15900 | { |
15901 | connector->encoder = encoder; | 15901 | connector->encoder = encoder; |
15902 | drm_mode_connector_attach_encoder(&connector->base, | 15902 | drm_connector_attach_encoder(&connector->base, &encoder->base); |
15903 | &encoder->base); | ||
15904 | } | 15903 | } |
15905 | 15904 | ||
15906 | /* | 15905 | /* |
diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c b/drivers/gpu/drm/i915/intel_dp_mst.c index 0f012fbe34eb..364330fc5d6a 100644 --- a/drivers/gpu/drm/i915/intel_dp_mst.c +++ b/drivers/gpu/drm/i915/intel_dp_mst.c | |||
@@ -466,8 +466,7 @@ static struct drm_connector *intel_dp_add_mst_connector(struct drm_dp_mst_topolo | |||
466 | struct drm_encoder *enc = | 466 | struct drm_encoder *enc = |
467 | &intel_dp->mst_encoders[pipe]->base.base; | 467 | &intel_dp->mst_encoders[pipe]->base.base; |
468 | 468 | ||
469 | ret = drm_mode_connector_attach_encoder(&intel_connector->base, | 469 | ret = drm_connector_attach_encoder(&intel_connector->base, enc); |
470 | enc); | ||
471 | if (ret) | 470 | if (ret) |
472 | goto err; | 471 | goto err; |
473 | } | 472 | } |
diff --git a/drivers/gpu/drm/imx/imx-ldb.c b/drivers/gpu/drm/imx/imx-ldb.c index ae81cbb75f51..7312beb6f1fc 100644 --- a/drivers/gpu/drm/imx/imx-ldb.c +++ b/drivers/gpu/drm/imx/imx-ldb.c | |||
@@ -471,8 +471,7 @@ static int imx_ldb_register(struct drm_device *drm, | |||
471 | drm_connector_init(drm, &imx_ldb_ch->connector, | 471 | drm_connector_init(drm, &imx_ldb_ch->connector, |
472 | &imx_ldb_connector_funcs, | 472 | &imx_ldb_connector_funcs, |
473 | DRM_MODE_CONNECTOR_LVDS); | 473 | DRM_MODE_CONNECTOR_LVDS); |
474 | drm_mode_connector_attach_encoder(&imx_ldb_ch->connector, | 474 | drm_connector_attach_encoder(&imx_ldb_ch->connector, encoder); |
475 | encoder); | ||
476 | } | 475 | } |
477 | 476 | ||
478 | if (imx_ldb_ch->panel) { | 477 | if (imx_ldb_ch->panel) { |
diff --git a/drivers/gpu/drm/imx/imx-tve.c b/drivers/gpu/drm/imx/imx-tve.c index 1a4ced5c09b5..cffd3310240e 100644 --- a/drivers/gpu/drm/imx/imx-tve.c +++ b/drivers/gpu/drm/imx/imx-tve.c | |||
@@ -493,7 +493,7 @@ static int imx_tve_register(struct drm_device *drm, struct imx_tve *tve) | |||
493 | drm_connector_init(drm, &tve->connector, &imx_tve_connector_funcs, | 493 | drm_connector_init(drm, &tve->connector, &imx_tve_connector_funcs, |
494 | DRM_MODE_CONNECTOR_VGA); | 494 | DRM_MODE_CONNECTOR_VGA); |
495 | 495 | ||
496 | drm_mode_connector_attach_encoder(&tve->connector, &tve->encoder); | 496 | drm_connector_attach_encoder(&tve->connector, &tve->encoder); |
497 | 497 | ||
498 | return 0; | 498 | return 0; |
499 | } | 499 | } |
diff --git a/drivers/gpu/drm/imx/parallel-display.c b/drivers/gpu/drm/imx/parallel-display.c index 4fc1cf583435..aefd04e18f93 100644 --- a/drivers/gpu/drm/imx/parallel-display.c +++ b/drivers/gpu/drm/imx/parallel-display.c | |||
@@ -197,7 +197,7 @@ static int imx_pd_register(struct drm_device *drm, | |||
197 | return ret; | 197 | return ret; |
198 | } | 198 | } |
199 | } else { | 199 | } else { |
200 | drm_mode_connector_attach_encoder(&imxpd->connector, encoder); | 200 | drm_connector_attach_encoder(&imxpd->connector, encoder); |
201 | } | 201 | } |
202 | 202 | ||
203 | return 0; | 203 | return 0; |
diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index aa0943ec32b0..66df1b177959 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c | |||
@@ -782,7 +782,7 @@ static int mtk_dsi_create_connector(struct drm_device *drm, struct mtk_dsi *dsi) | |||
782 | drm_connector_helper_add(&dsi->conn, &mtk_dsi_connector_helper_funcs); | 782 | drm_connector_helper_add(&dsi->conn, &mtk_dsi_connector_helper_funcs); |
783 | 783 | ||
784 | dsi->conn.dpms = DRM_MODE_DPMS_OFF; | 784 | dsi->conn.dpms = DRM_MODE_DPMS_OFF; |
785 | drm_mode_connector_attach_encoder(&dsi->conn, &dsi->encoder); | 785 | drm_connector_attach_encoder(&dsi->conn, &dsi->encoder); |
786 | 786 | ||
787 | if (dsi->panel) { | 787 | if (dsi->panel) { |
788 | ret = drm_panel_attach(dsi->panel, &dsi->conn); | 788 | ret = drm_panel_attach(dsi->panel, &dsi->conn); |
diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c index 835313940395..2d45d1dd9554 100644 --- a/drivers/gpu/drm/mediatek/mtk_hdmi.c +++ b/drivers/gpu/drm/mediatek/mtk_hdmi.c | |||
@@ -1306,7 +1306,7 @@ static int mtk_hdmi_bridge_attach(struct drm_bridge *bridge) | |||
1306 | hdmi->conn.interlace_allowed = true; | 1306 | hdmi->conn.interlace_allowed = true; |
1307 | hdmi->conn.doublescan_allowed = false; | 1307 | hdmi->conn.doublescan_allowed = false; |
1308 | 1308 | ||
1309 | ret = drm_mode_connector_attach_encoder(&hdmi->conn, | 1309 | ret = drm_connector_attach_encoder(&hdmi->conn, |
1310 | bridge->encoder); | 1310 | bridge->encoder); |
1311 | if (ret) { | 1311 | if (ret) { |
1312 | dev_err(hdmi->dev, | 1312 | dev_err(hdmi->dev, |
diff --git a/drivers/gpu/drm/meson/meson_venc_cvbs.c b/drivers/gpu/drm/meson/meson_venc_cvbs.c index 79d95ca8a0c0..f7945bae3b4a 100644 --- a/drivers/gpu/drm/meson/meson_venc_cvbs.c +++ b/drivers/gpu/drm/meson/meson_venc_cvbs.c | |||
@@ -282,7 +282,7 @@ int meson_venc_cvbs_create(struct meson_drm *priv) | |||
282 | 282 | ||
283 | encoder->possible_crtcs = BIT(0); | 283 | encoder->possible_crtcs = BIT(0); |
284 | 284 | ||
285 | drm_mode_connector_attach_encoder(connector, encoder); | 285 | drm_connector_attach_encoder(connector, encoder); |
286 | 286 | ||
287 | return 0; | 287 | return 0; |
288 | } | 288 | } |
diff --git a/drivers/gpu/drm/mgag200/mgag200_mode.c b/drivers/gpu/drm/mgag200/mgag200_mode.c index 5f104f139197..acf7bfe68454 100644 --- a/drivers/gpu/drm/mgag200/mgag200_mode.c +++ b/drivers/gpu/drm/mgag200/mgag200_mode.c | |||
@@ -1747,7 +1747,7 @@ int mgag200_modeset_init(struct mga_device *mdev) | |||
1747 | return -1; | 1747 | return -1; |
1748 | } | 1748 | } |
1749 | 1749 | ||
1750 | drm_mode_connector_attach_encoder(connector, encoder); | 1750 | drm_connector_attach_encoder(connector, encoder); |
1751 | 1751 | ||
1752 | ret = mgag200_fbdev_init(mdev); | 1752 | ret = mgag200_fbdev_init(mdev); |
1753 | if (ret) { | 1753 | if (ret) { |
diff --git a/drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_connector.c b/drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_connector.c index 32fba5664b0e..5368e621999c 100644 --- a/drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_connector.c +++ b/drivers/gpu/drm/msm/disp/mdp4/mdp4_lvds_connector.c | |||
@@ -132,7 +132,7 @@ struct drm_connector *mdp4_lvds_connector_init(struct drm_device *dev, | |||
132 | connector->interlace_allowed = 0; | 132 | connector->interlace_allowed = 0; |
133 | connector->doublescan_allowed = 0; | 133 | connector->doublescan_allowed = 0; |
134 | 134 | ||
135 | drm_mode_connector_attach_encoder(connector, encoder); | 135 | drm_connector_attach_encoder(connector, encoder); |
136 | 136 | ||
137 | return connector; | 137 | return connector; |
138 | } | 138 | } |
diff --git a/drivers/gpu/drm/msm/dsi/dsi_manager.c b/drivers/gpu/drm/msm/dsi/dsi_manager.c index 4beba3f7d067..21e0dc51531d 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_manager.c +++ b/drivers/gpu/drm/msm/dsi/dsi_manager.c | |||
@@ -684,7 +684,7 @@ struct drm_connector *msm_dsi_manager_connector_init(u8 id) | |||
684 | connector->interlace_allowed = 0; | 684 | connector->interlace_allowed = 0; |
685 | connector->doublescan_allowed = 0; | 685 | connector->doublescan_allowed = 0; |
686 | 686 | ||
687 | drm_mode_connector_attach_encoder(connector, msm_dsi->encoder); | 687 | drm_connector_attach_encoder(connector, msm_dsi->encoder); |
688 | 688 | ||
689 | return connector; | 689 | return connector; |
690 | } | 690 | } |
diff --git a/drivers/gpu/drm/msm/edp/edp_connector.c b/drivers/gpu/drm/msm/edp/edp_connector.c index 0b5eac054195..058ff92a0207 100644 --- a/drivers/gpu/drm/msm/edp/edp_connector.c +++ b/drivers/gpu/drm/msm/edp/edp_connector.c | |||
@@ -134,7 +134,7 @@ struct drm_connector *msm_edp_connector_init(struct msm_edp *edp) | |||
134 | connector->interlace_allowed = false; | 134 | connector->interlace_allowed = false; |
135 | connector->doublescan_allowed = false; | 135 | connector->doublescan_allowed = false; |
136 | 136 | ||
137 | drm_mode_connector_attach_encoder(connector, edp->encoder); | 137 | drm_connector_attach_encoder(connector, edp->encoder); |
138 | 138 | ||
139 | return connector; | 139 | return connector; |
140 | } | 140 | } |
diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_connector.c b/drivers/gpu/drm/msm/hdmi/hdmi_connector.c index 07feacc5a441..e9c9a0af508e 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi_connector.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi_connector.c | |||
@@ -477,7 +477,7 @@ struct drm_connector *msm_hdmi_connector_init(struct hdmi *hdmi) | |||
477 | return ERR_PTR(ret); | 477 | return ERR_PTR(ret); |
478 | } | 478 | } |
479 | 479 | ||
480 | drm_mode_connector_attach_encoder(connector, hdmi->encoder); | 480 | drm_connector_attach_encoder(connector, hdmi->encoder); |
481 | 481 | ||
482 | return connector; | 482 | return connector; |
483 | } | 483 | } |
diff --git a/drivers/gpu/drm/nouveau/dispnv04/dac.c b/drivers/gpu/drm/nouveau/dispnv04/dac.c index 4feab0a5419d..e7af95d37ddb 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/dac.c +++ b/drivers/gpu/drm/nouveau/dispnv04/dac.c | |||
@@ -556,6 +556,6 @@ nv04_dac_create(struct drm_connector *connector, struct dcb_output *entry) | |||
556 | encoder->possible_crtcs = entry->heads; | 556 | encoder->possible_crtcs = entry->heads; |
557 | encoder->possible_clones = 0; | 557 | encoder->possible_clones = 0; |
558 | 558 | ||
559 | drm_mode_connector_attach_encoder(connector, encoder); | 559 | drm_connector_attach_encoder(connector, encoder); |
560 | return 0; | 560 | return 0; |
561 | } | 561 | } |
diff --git a/drivers/gpu/drm/nouveau/dispnv04/dfp.c b/drivers/gpu/drm/nouveau/dispnv04/dfp.c index 9805d2cdc1a1..73d41abbb510 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/dfp.c +++ b/drivers/gpu/drm/nouveau/dispnv04/dfp.c | |||
@@ -716,6 +716,6 @@ nv04_dfp_create(struct drm_connector *connector, struct dcb_output *entry) | |||
716 | entry->location != DCB_LOC_ON_CHIP) | 716 | entry->location != DCB_LOC_ON_CHIP) |
717 | nv04_tmds_slave_init(encoder); | 717 | nv04_tmds_slave_init(encoder); |
718 | 718 | ||
719 | drm_mode_connector_attach_encoder(connector, encoder); | 719 | drm_connector_attach_encoder(connector, encoder); |
720 | return 0; | 720 | return 0; |
721 | } | 721 | } |
diff --git a/drivers/gpu/drm/nouveau/dispnv04/tvnv04.c b/drivers/gpu/drm/nouveau/dispnv04/tvnv04.c index 01664357d3e1..de4490b4ed30 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/tvnv04.c +++ b/drivers/gpu/drm/nouveau/dispnv04/tvnv04.c | |||
@@ -244,7 +244,7 @@ nv04_tv_create(struct drm_connector *connector, struct dcb_output *entry) | |||
244 | 244 | ||
245 | /* Attach it to the specified connector. */ | 245 | /* Attach it to the specified connector. */ |
246 | get_slave_funcs(encoder)->create_resources(encoder, connector); | 246 | get_slave_funcs(encoder)->create_resources(encoder, connector); |
247 | drm_mode_connector_attach_encoder(connector, encoder); | 247 | drm_connector_attach_encoder(connector, encoder); |
248 | 248 | ||
249 | return 0; | 249 | return 0; |
250 | 250 | ||
diff --git a/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c b/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c index 6d99f11fee4e..6a4ca139cf5d 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c +++ b/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c | |||
@@ -821,6 +821,6 @@ nv17_tv_create(struct drm_connector *connector, struct dcb_output *entry) | |||
821 | encoder->possible_clones = 0; | 821 | encoder->possible_clones = 0; |
822 | 822 | ||
823 | nv17_tv_create_resources(encoder, connector); | 823 | nv17_tv_create_resources(encoder, connector); |
824 | drm_mode_connector_attach_encoder(connector, encoder); | 824 | drm_connector_attach_encoder(connector, encoder); |
825 | return 0; | 825 | return 0; |
826 | } | 826 | } |
diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index 2fabb69e452b..475456c19b76 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c | |||
@@ -424,7 +424,7 @@ nv50_dac_create(struct drm_connector *connector, struct dcb_output *dcbe) | |||
424 | "dac-%04x-%04x", dcbe->hasht, dcbe->hashm); | 424 | "dac-%04x-%04x", dcbe->hasht, dcbe->hashm); |
425 | drm_encoder_helper_add(encoder, &nv50_dac_help); | 425 | drm_encoder_helper_add(encoder, &nv50_dac_help); |
426 | 426 | ||
427 | drm_mode_connector_attach_encoder(connector, encoder); | 427 | drm_connector_attach_encoder(connector, encoder); |
428 | return 0; | 428 | return 0; |
429 | } | 429 | } |
430 | 430 | ||
@@ -927,7 +927,7 @@ nv50_mstc_new(struct nv50_mstm *mstm, struct drm_dp_mst_port *port, | |||
927 | nouveau_conn_attach_properties(&mstc->connector); | 927 | nouveau_conn_attach_properties(&mstc->connector); |
928 | 928 | ||
929 | for (i = 0; i < ARRAY_SIZE(mstm->msto) && mstm->msto[i]; i++) | 929 | for (i = 0; i < ARRAY_SIZE(mstm->msto) && mstm->msto[i]; i++) |
930 | drm_mode_connector_attach_encoder(&mstc->connector, &mstm->msto[i]->encoder); | 930 | drm_connector_attach_encoder(&mstc->connector, &mstm->msto[i]->encoder); |
931 | 931 | ||
932 | drm_object_attach_property(&mstc->connector.base, dev->mode_config.path_property, 0); | 932 | drm_object_attach_property(&mstc->connector.base, dev->mode_config.path_property, 0); |
933 | drm_object_attach_property(&mstc->connector.base, dev->mode_config.tile_property, 0); | 933 | drm_object_attach_property(&mstc->connector.base, dev->mode_config.tile_property, 0); |
@@ -1418,7 +1418,7 @@ nv50_sor_create(struct drm_connector *connector, struct dcb_output *dcbe) | |||
1418 | "sor-%04x-%04x", dcbe->hasht, dcbe->hashm); | 1418 | "sor-%04x-%04x", dcbe->hasht, dcbe->hashm); |
1419 | drm_encoder_helper_add(encoder, &nv50_sor_help); | 1419 | drm_encoder_helper_add(encoder, &nv50_sor_help); |
1420 | 1420 | ||
1421 | drm_mode_connector_attach_encoder(connector, encoder); | 1421 | drm_connector_attach_encoder(connector, encoder); |
1422 | 1422 | ||
1423 | if (dcbe->type == DCB_OUTPUT_DP) { | 1423 | if (dcbe->type == DCB_OUTPUT_DP) { |
1424 | struct nv50_disp *disp = nv50_disp(encoder->dev); | 1424 | struct nv50_disp *disp = nv50_disp(encoder->dev); |
@@ -1576,7 +1576,7 @@ nv50_pior_create(struct drm_connector *connector, struct dcb_output *dcbe) | |||
1576 | "pior-%04x-%04x", dcbe->hasht, dcbe->hashm); | 1576 | "pior-%04x-%04x", dcbe->hasht, dcbe->hashm); |
1577 | drm_encoder_helper_add(encoder, &nv50_pior_help); | 1577 | drm_encoder_helper_add(encoder, &nv50_pior_help); |
1578 | 1578 | ||
1579 | drm_mode_connector_attach_encoder(connector, encoder); | 1579 | drm_connector_attach_encoder(connector, encoder); |
1580 | return 0; | 1580 | return 0; |
1581 | } | 1581 | } |
1582 | 1582 | ||
diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c index 5005ecc284d2..1b6601e9b107 100644 --- a/drivers/gpu/drm/omapdrm/omap_drv.c +++ b/drivers/gpu/drm/omapdrm/omap_drv.c | |||
@@ -274,7 +274,7 @@ static int omap_modeset_init(struct drm_device *dev) | |||
274 | if (IS_ERR(crtc)) | 274 | if (IS_ERR(crtc)) |
275 | return PTR_ERR(crtc); | 275 | return PTR_ERR(crtc); |
276 | 276 | ||
277 | drm_mode_connector_attach_encoder(connector, encoder); | 277 | drm_connector_attach_encoder(connector, encoder); |
278 | encoder->possible_crtcs = (1 << crtc_idx); | 278 | encoder->possible_crtcs = (1 << crtc_idx); |
279 | 279 | ||
280 | priv->crtcs[priv->num_crtcs++] = crtc; | 280 | priv->crtcs[priv->num_crtcs++] = crtc; |
diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index 768207fbbae3..0570c6826bff 100644 --- a/drivers/gpu/drm/qxl/qxl_display.c +++ b/drivers/gpu/drm/qxl/qxl_display.c | |||
@@ -1086,7 +1086,7 @@ static int qdev_output_init(struct drm_device *dev, int num_output) | |||
1086 | /* we get HPD via client monitors config */ | 1086 | /* we get HPD via client monitors config */ |
1087 | connector->polled = DRM_CONNECTOR_POLL_HPD; | 1087 | connector->polled = DRM_CONNECTOR_POLL_HPD; |
1088 | encoder->possible_crtcs = 1 << num_output; | 1088 | encoder->possible_crtcs = 1 << num_output; |
1089 | drm_mode_connector_attach_encoder(&qxl_output->base, | 1089 | drm_connector_attach_encoder(&qxl_output->base, |
1090 | &qxl_output->enc); | 1090 | &qxl_output->enc); |
1091 | drm_encoder_helper_add(encoder, &qxl_enc_helper_funcs); | 1091 | drm_encoder_helper_add(encoder, &qxl_enc_helper_funcs); |
1092 | drm_connector_helper_add(connector, &qxl_connector_helper_funcs); | 1092 | drm_connector_helper_add(connector, &qxl_connector_helper_funcs); |
diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c index c6ee80216cf4..c341fb2a5b56 100644 --- a/drivers/gpu/drm/radeon/radeon_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_encoders.c | |||
@@ -211,7 +211,7 @@ radeon_link_encoder_connector(struct drm_device *dev) | |||
211 | list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { | 211 | list_for_each_entry(encoder, &dev->mode_config.encoder_list, head) { |
212 | radeon_encoder = to_radeon_encoder(encoder); | 212 | radeon_encoder = to_radeon_encoder(encoder); |
213 | if (radeon_encoder->devices & radeon_connector->devices) { | 213 | if (radeon_encoder->devices & radeon_connector->devices) { |
214 | drm_mode_connector_attach_encoder(connector, encoder); | 214 | drm_connector_attach_encoder(connector, encoder); |
215 | if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) | 215 | if (radeon_encoder->devices & (ATOM_DEVICE_LCD_SUPPORT)) |
216 | radeon_encoder_add_backlight(radeon_encoder, connector); | 216 | radeon_encoder_add_backlight(radeon_encoder, connector); |
217 | } | 217 | } |
diff --git a/drivers/gpu/drm/rcar-du/rcar_lvds.c b/drivers/gpu/drm/rcar-du/rcar_lvds.c index 5d8e391e75f4..4c39de3f4f0f 100644 --- a/drivers/gpu/drm/rcar-du/rcar_lvds.c +++ b/drivers/gpu/drm/rcar-du/rcar_lvds.c | |||
@@ -353,7 +353,7 @@ static int rcar_lvds_attach(struct drm_bridge *bridge) | |||
353 | 353 | ||
354 | drm_connector_helper_add(connector, &rcar_lvds_conn_helper_funcs); | 354 | drm_connector_helper_add(connector, &rcar_lvds_conn_helper_funcs); |
355 | 355 | ||
356 | ret = drm_mode_connector_attach_encoder(connector, encoder); | 356 | ret = drm_connector_attach_encoder(connector, encoder); |
357 | if (ret < 0) | 357 | if (ret < 0) |
358 | return ret; | 358 | return ret; |
359 | 359 | ||
diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c index a40cb2be50e1..8ad0d773dc33 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.c +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c | |||
@@ -1062,7 +1062,7 @@ static int cdn_dp_bind(struct device *dev, struct device *master, void *data) | |||
1062 | 1062 | ||
1063 | drm_connector_helper_add(connector, &cdn_dp_connector_helper_funcs); | 1063 | drm_connector_helper_add(connector, &cdn_dp_connector_helper_funcs); |
1064 | 1064 | ||
1065 | ret = drm_mode_connector_attach_encoder(connector, encoder); | 1065 | ret = drm_connector_attach_encoder(connector, encoder); |
1066 | if (ret) { | 1066 | if (ret) { |
1067 | DRM_ERROR("failed to attach connector and encoder\n"); | 1067 | DRM_ERROR("failed to attach connector and encoder\n"); |
1068 | goto err_free_connector; | 1068 | goto err_free_connector; |
diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c index 01642aaf6127..662b6cb5d3f0 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi.c | |||
@@ -1129,7 +1129,7 @@ static int dw_mipi_dsi_register(struct drm_device *drm, | |||
1129 | &dw_mipi_dsi_atomic_connector_funcs, | 1129 | &dw_mipi_dsi_atomic_connector_funcs, |
1130 | DRM_MODE_CONNECTOR_DSI); | 1130 | DRM_MODE_CONNECTOR_DSI); |
1131 | 1131 | ||
1132 | drm_mode_connector_attach_encoder(connector, encoder); | 1132 | drm_connector_attach_encoder(connector, encoder); |
1133 | 1133 | ||
1134 | return 0; | 1134 | return 0; |
1135 | } | 1135 | } |
diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index 510fcb33e31d..1c02b3e61299 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c | |||
@@ -634,7 +634,7 @@ static int inno_hdmi_register(struct drm_device *drm, struct inno_hdmi *hdmi) | |||
634 | drm_connector_init(drm, &hdmi->connector, &inno_hdmi_connector_funcs, | 634 | drm_connector_init(drm, &hdmi->connector, &inno_hdmi_connector_funcs, |
635 | DRM_MODE_CONNECTOR_HDMIA); | 635 | DRM_MODE_CONNECTOR_HDMIA); |
636 | 636 | ||
637 | drm_mode_connector_attach_encoder(&hdmi->connector, encoder); | 637 | drm_connector_attach_encoder(&hdmi->connector, encoder); |
638 | 638 | ||
639 | return 0; | 639 | return 0; |
640 | } | 640 | } |
diff --git a/drivers/gpu/drm/rockchip/rockchip_lvds.c b/drivers/gpu/drm/rockchip/rockchip_lvds.c index b3f6f524b402..456bd9f13bae 100644 --- a/drivers/gpu/drm/rockchip/rockchip_lvds.c +++ b/drivers/gpu/drm/rockchip/rockchip_lvds.c | |||
@@ -434,7 +434,7 @@ static int rockchip_lvds_bind(struct device *dev, struct device *master, | |||
434 | drm_connector_helper_add(connector, | 434 | drm_connector_helper_add(connector, |
435 | &rockchip_lvds_connector_helper_funcs); | 435 | &rockchip_lvds_connector_helper_funcs); |
436 | 436 | ||
437 | ret = drm_mode_connector_attach_encoder(connector, encoder); | 437 | ret = drm_connector_attach_encoder(connector, encoder); |
438 | if (ret < 0) { | 438 | if (ret < 0) { |
439 | DRM_DEV_ERROR(drm_dev->dev, | 439 | DRM_DEV_ERROR(drm_dev->dev, |
440 | "failed to attach encoder: %d\n", ret); | 440 | "failed to attach encoder: %d\n", ret); |
diff --git a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c b/drivers/gpu/drm/shmobile/shmob_drm_crtc.c index 40df8887fc17..fc66167b0641 100644 --- a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c +++ b/drivers/gpu/drm/shmobile/shmob_drm_crtc.c | |||
@@ -675,7 +675,7 @@ int shmob_drm_connector_create(struct shmob_drm_device *sdev, | |||
675 | if (ret < 0) | 675 | if (ret < 0) |
676 | goto err_cleanup; | 676 | goto err_cleanup; |
677 | 677 | ||
678 | ret = drm_mode_connector_attach_encoder(connector, encoder); | 678 | ret = drm_connector_attach_encoder(connector, encoder); |
679 | if (ret < 0) | 679 | if (ret < 0) |
680 | goto err_backlight; | 680 | goto err_backlight; |
681 | 681 | ||
diff --git a/drivers/gpu/drm/sti/sti_dvo.c b/drivers/gpu/drm/sti/sti_dvo.c index 030da55a8d30..b08376b7611b 100644 --- a/drivers/gpu/drm/sti/sti_dvo.c +++ b/drivers/gpu/drm/sti/sti_dvo.c | |||
@@ -486,7 +486,7 @@ static int sti_dvo_bind(struct device *dev, struct device *master, void *data) | |||
486 | drm_connector_helper_add(drm_connector, | 486 | drm_connector_helper_add(drm_connector, |
487 | &sti_dvo_connector_helper_funcs); | 487 | &sti_dvo_connector_helper_funcs); |
488 | 488 | ||
489 | err = drm_mode_connector_attach_encoder(drm_connector, encoder); | 489 | err = drm_connector_attach_encoder(drm_connector, encoder); |
490 | if (err) { | 490 | if (err) { |
491 | DRM_ERROR("Failed to attach a connector to a encoder\n"); | 491 | DRM_ERROR("Failed to attach a connector to a encoder\n"); |
492 | goto err_sysfs; | 492 | goto err_sysfs; |
diff --git a/drivers/gpu/drm/sti/sti_hda.c b/drivers/gpu/drm/sti/sti_hda.c index 67bbdb49fffc..49438337f70d 100644 --- a/drivers/gpu/drm/sti/sti_hda.c +++ b/drivers/gpu/drm/sti/sti_hda.c | |||
@@ -709,7 +709,7 @@ static int sti_hda_bind(struct device *dev, struct device *master, void *data) | |||
709 | drm_connector_helper_add(drm_connector, | 709 | drm_connector_helper_add(drm_connector, |
710 | &sti_hda_connector_helper_funcs); | 710 | &sti_hda_connector_helper_funcs); |
711 | 711 | ||
712 | err = drm_mode_connector_attach_encoder(drm_connector, encoder); | 712 | err = drm_connector_attach_encoder(drm_connector, encoder); |
713 | if (err) { | 713 | if (err) { |
714 | DRM_ERROR("Failed to attach a connector to a encoder\n"); | 714 | DRM_ERROR("Failed to attach a connector to a encoder\n"); |
715 | goto err_sysfs; | 715 | goto err_sysfs; |
diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/sti_hdmi.c index 0c3008356ab8..34cdc4644435 100644 --- a/drivers/gpu/drm/sti/sti_hdmi.c +++ b/drivers/gpu/drm/sti/sti_hdmi.c | |||
@@ -1290,7 +1290,7 @@ static int sti_hdmi_bind(struct device *dev, struct device *master, void *data) | |||
1290 | 1290 | ||
1291 | hdmi->drm_connector = drm_connector; | 1291 | hdmi->drm_connector = drm_connector; |
1292 | 1292 | ||
1293 | err = drm_mode_connector_attach_encoder(drm_connector, encoder); | 1293 | err = drm_connector_attach_encoder(drm_connector, encoder); |
1294 | if (err) { | 1294 | if (err) { |
1295 | DRM_ERROR("Failed to attach a connector to a encoder\n"); | 1295 | DRM_ERROR("Failed to attach a connector to a encoder\n"); |
1296 | goto err_sysfs; | 1296 | goto err_sysfs; |
diff --git a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c index 9b4b1d015423..061d2e0d9011 100644 --- a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c +++ b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | |||
@@ -623,7 +623,7 @@ static int sun4i_hdmi_bind(struct device *dev, struct device *master, | |||
623 | ret = cec_register_adapter(hdmi->cec_adap, dev); | 623 | ret = cec_register_adapter(hdmi->cec_adap, dev); |
624 | if (ret < 0) | 624 | if (ret < 0) |
625 | goto err_cleanup_connector; | 625 | goto err_cleanup_connector; |
626 | drm_mode_connector_attach_encoder(&hdmi->connector, &hdmi->encoder); | 626 | drm_connector_attach_encoder(&hdmi->connector, &hdmi->encoder); |
627 | 627 | ||
628 | return 0; | 628 | return 0; |
629 | 629 | ||
diff --git a/drivers/gpu/drm/sun4i/sun4i_lvds.c b/drivers/gpu/drm/sun4i/sun4i_lvds.c index a69fe2e1f9d1..af7dcb6da351 100644 --- a/drivers/gpu/drm/sun4i/sun4i_lvds.c +++ b/drivers/gpu/drm/sun4i/sun4i_lvds.c | |||
@@ -149,7 +149,7 @@ int sun4i_lvds_init(struct drm_device *drm, struct sun4i_tcon *tcon) | |||
149 | goto err_cleanup_connector; | 149 | goto err_cleanup_connector; |
150 | } | 150 | } |
151 | 151 | ||
152 | drm_mode_connector_attach_encoder(&lvds->connector, | 152 | drm_connector_attach_encoder(&lvds->connector, |
153 | &lvds->encoder); | 153 | &lvds->encoder); |
154 | 154 | ||
155 | ret = drm_panel_attach(tcon->panel, &lvds->connector); | 155 | ret = drm_panel_attach(tcon->panel, &lvds->connector); |
diff --git a/drivers/gpu/drm/sun4i/sun4i_rgb.c b/drivers/gpu/drm/sun4i/sun4i_rgb.c index 96d21b07f8fc..bf068da6b12e 100644 --- a/drivers/gpu/drm/sun4i/sun4i_rgb.c +++ b/drivers/gpu/drm/sun4i/sun4i_rgb.c | |||
@@ -215,7 +215,7 @@ int sun4i_rgb_init(struct drm_device *drm, struct sun4i_tcon *tcon) | |||
215 | goto err_cleanup_connector; | 215 | goto err_cleanup_connector; |
216 | } | 216 | } |
217 | 217 | ||
218 | drm_mode_connector_attach_encoder(&rgb->connector, | 218 | drm_connector_attach_encoder(&rgb->connector, |
219 | &rgb->encoder); | 219 | &rgb->encoder); |
220 | 220 | ||
221 | ret = drm_panel_attach(tcon->panel, &rgb->connector); | 221 | ret = drm_panel_attach(tcon->panel, &rgb->connector); |
diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c index b070d522ed8d..1a838d208211 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tv.c +++ b/drivers/gpu/drm/sun4i/sun4i_tv.c | |||
@@ -623,7 +623,7 @@ static int sun4i_tv_bind(struct device *dev, struct device *master, | |||
623 | } | 623 | } |
624 | tv->connector.interlace_allowed = true; | 624 | tv->connector.interlace_allowed = true; |
625 | 625 | ||
626 | drm_mode_connector_attach_encoder(&tv->connector, &tv->encoder); | 626 | drm_connector_attach_encoder(&tv->connector, &tv->encoder); |
627 | 627 | ||
628 | return 0; | 628 | return 0; |
629 | 629 | ||
diff --git a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c index 2b40d1f6aee8..e3b34a345546 100644 --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | |||
@@ -941,7 +941,7 @@ static int sun6i_dsi_bind(struct device *dev, struct device *master, | |||
941 | goto err_cleanup_connector; | 941 | goto err_cleanup_connector; |
942 | } | 942 | } |
943 | 943 | ||
944 | drm_mode_connector_attach_encoder(&dsi->connector, &dsi->encoder); | 944 | drm_connector_attach_encoder(&dsi->connector, &dsi->encoder); |
945 | drm_panel_attach(dsi->panel, &dsi->connector); | 945 | drm_panel_attach(dsi->panel, &dsi->connector); |
946 | 946 | ||
947 | return 0; | 947 | return 0; |
diff --git a/drivers/gpu/drm/tegra/dsi.c b/drivers/gpu/drm/tegra/dsi.c index ad88ec230329..ee6ca8fa1c65 100644 --- a/drivers/gpu/drm/tegra/dsi.c +++ b/drivers/gpu/drm/tegra/dsi.c | |||
@@ -1052,7 +1052,7 @@ static int tegra_dsi_init(struct host1x_client *client) | |||
1052 | drm_encoder_helper_add(&dsi->output.encoder, | 1052 | drm_encoder_helper_add(&dsi->output.encoder, |
1053 | &tegra_dsi_encoder_helper_funcs); | 1053 | &tegra_dsi_encoder_helper_funcs); |
1054 | 1054 | ||
1055 | drm_mode_connector_attach_encoder(&dsi->output.connector, | 1055 | drm_connector_attach_encoder(&dsi->output.connector, |
1056 | &dsi->output.encoder); | 1056 | &dsi->output.encoder); |
1057 | drm_connector_register(&dsi->output.connector); | 1057 | drm_connector_register(&dsi->output.connector); |
1058 | 1058 | ||
diff --git a/drivers/gpu/drm/tegra/hdmi.c b/drivers/gpu/drm/tegra/hdmi.c index 784739a9f497..0082468f703c 100644 --- a/drivers/gpu/drm/tegra/hdmi.c +++ b/drivers/gpu/drm/tegra/hdmi.c | |||
@@ -1488,7 +1488,7 @@ static int tegra_hdmi_init(struct host1x_client *client) | |||
1488 | drm_encoder_helper_add(&hdmi->output.encoder, | 1488 | drm_encoder_helper_add(&hdmi->output.encoder, |
1489 | &tegra_hdmi_encoder_helper_funcs); | 1489 | &tegra_hdmi_encoder_helper_funcs); |
1490 | 1490 | ||
1491 | drm_mode_connector_attach_encoder(&hdmi->output.connector, | 1491 | drm_connector_attach_encoder(&hdmi->output.connector, |
1492 | &hdmi->output.encoder); | 1492 | &hdmi->output.encoder); |
1493 | drm_connector_register(&hdmi->output.connector); | 1493 | drm_connector_register(&hdmi->output.connector); |
1494 | 1494 | ||
diff --git a/drivers/gpu/drm/tegra/rgb.c b/drivers/gpu/drm/tegra/rgb.c index 78ec5193741d..28a78d3120bc 100644 --- a/drivers/gpu/drm/tegra/rgb.c +++ b/drivers/gpu/drm/tegra/rgb.c | |||
@@ -289,7 +289,7 @@ int tegra_dc_rgb_init(struct drm_device *drm, struct tegra_dc *dc) | |||
289 | drm_encoder_helper_add(&output->encoder, | 289 | drm_encoder_helper_add(&output->encoder, |
290 | &tegra_rgb_encoder_helper_funcs); | 290 | &tegra_rgb_encoder_helper_funcs); |
291 | 291 | ||
292 | drm_mode_connector_attach_encoder(&output->connector, | 292 | drm_connector_attach_encoder(&output->connector, |
293 | &output->encoder); | 293 | &output->encoder); |
294 | drm_connector_register(&output->connector); | 294 | drm_connector_register(&output->connector); |
295 | 295 | ||
diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index 7d2a955fc515..d7fe9f15def1 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c | |||
@@ -2622,7 +2622,7 @@ static int tegra_sor_init(struct host1x_client *client) | |||
2622 | encoder, NULL); | 2622 | encoder, NULL); |
2623 | drm_encoder_helper_add(&sor->output.encoder, helpers); | 2623 | drm_encoder_helper_add(&sor->output.encoder, helpers); |
2624 | 2624 | ||
2625 | drm_mode_connector_attach_encoder(&sor->output.connector, | 2625 | drm_connector_attach_encoder(&sor->output.connector, |
2626 | &sor->output.encoder); | 2626 | &sor->output.encoder); |
2627 | drm_connector_register(&sor->output.connector); | 2627 | drm_connector_register(&sor->output.connector); |
2628 | 2628 | ||
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_panel.c b/drivers/gpu/drm/tilcdc/tilcdc_panel.c index d616d64a6725..a1acab39d87f 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_panel.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_panel.c | |||
@@ -223,7 +223,7 @@ static struct drm_connector *panel_connector_create(struct drm_device *dev, | |||
223 | connector->interlace_allowed = 0; | 223 | connector->interlace_allowed = 0; |
224 | connector->doublescan_allowed = 0; | 224 | connector->doublescan_allowed = 0; |
225 | 225 | ||
226 | ret = drm_mode_connector_attach_encoder(connector, encoder); | 226 | ret = drm_connector_attach_encoder(connector, encoder); |
227 | if (ret) | 227 | if (ret) |
228 | goto fail; | 228 | goto fail; |
229 | 229 | ||
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c index 46dacca3cce8..daebf1aa6b0a 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_tfp410.c | |||
@@ -240,7 +240,7 @@ static struct drm_connector *tfp410_connector_create(struct drm_device *dev, | |||
240 | connector->interlace_allowed = 0; | 240 | connector->interlace_allowed = 0; |
241 | connector->doublescan_allowed = 0; | 241 | connector->doublescan_allowed = 0; |
242 | 242 | ||
243 | ret = drm_mode_connector_attach_encoder(connector, encoder); | 243 | ret = drm_connector_attach_encoder(connector, encoder); |
244 | if (ret) | 244 | if (ret) |
245 | goto fail; | 245 | goto fail; |
246 | 246 | ||
diff --git a/drivers/gpu/drm/udl/udl_connector.c b/drivers/gpu/drm/udl/udl_connector.c index 8fac12e1a1a4..68e88bed77ca 100644 --- a/drivers/gpu/drm/udl/udl_connector.c +++ b/drivers/gpu/drm/udl/udl_connector.c | |||
@@ -200,7 +200,7 @@ int udl_connector_init(struct drm_device *dev, struct drm_encoder *encoder) | |||
200 | drm_connector_helper_add(connector, &udl_connector_helper_funcs); | 200 | drm_connector_helper_add(connector, &udl_connector_helper_funcs); |
201 | 201 | ||
202 | drm_connector_register(connector); | 202 | drm_connector_register(connector); |
203 | drm_mode_connector_attach_encoder(connector, encoder); | 203 | drm_connector_attach_encoder(connector, encoder); |
204 | connector->polled = DRM_CONNECTOR_POLL_HPD | | 204 | connector->polled = DRM_CONNECTOR_POLL_HPD | |
205 | DRM_CONNECTOR_POLL_CONNECT | DRM_CONNECTOR_POLL_DISCONNECT; | 205 | DRM_CONNECTOR_POLL_CONNECT | DRM_CONNECTOR_POLL_DISCONNECT; |
206 | 206 | ||
diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c index 91f284e1b908..fd5522fd179e 100644 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c | |||
@@ -329,7 +329,7 @@ static struct drm_connector *vc4_hdmi_connector_init(struct drm_device *dev, | |||
329 | connector->interlace_allowed = 1; | 329 | connector->interlace_allowed = 1; |
330 | connector->doublescan_allowed = 0; | 330 | connector->doublescan_allowed = 0; |
331 | 331 | ||
332 | drm_mode_connector_attach_encoder(connector, encoder); | 332 | drm_connector_attach_encoder(connector, encoder); |
333 | 333 | ||
334 | return connector; | 334 | return connector; |
335 | } | 335 | } |
diff --git a/drivers/gpu/drm/vc4/vc4_vec.c b/drivers/gpu/drm/vc4/vc4_vec.c index 3a9a302247a2..8e7facb6514e 100644 --- a/drivers/gpu/drm/vc4/vc4_vec.c +++ b/drivers/gpu/drm/vc4/vc4_vec.c | |||
@@ -404,7 +404,7 @@ static struct drm_connector *vc4_vec_connector_init(struct drm_device *dev, | |||
404 | VC4_VEC_TV_MODE_NTSC); | 404 | VC4_VEC_TV_MODE_NTSC); |
405 | vec->tv_mode = &vc4_vec_tv_modes[VC4_VEC_TV_MODE_NTSC]; | 405 | vec->tv_mode = &vc4_vec_tv_modes[VC4_VEC_TV_MODE_NTSC]; |
406 | 406 | ||
407 | drm_mode_connector_attach_encoder(connector, vec->encoder); | 407 | drm_connector_attach_encoder(connector, vec->encoder); |
408 | 408 | ||
409 | return connector; | 409 | return connector; |
410 | } | 410 | } |
diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/drivers/gpu/drm/virtio/virtgpu_display.c index ff9933e79416..25503b933599 100644 --- a/drivers/gpu/drm/virtio/virtgpu_display.c +++ b/drivers/gpu/drm/virtio/virtgpu_display.c | |||
@@ -292,7 +292,7 @@ static int vgdev_output_init(struct virtio_gpu_device *vgdev, int index) | |||
292 | drm_encoder_helper_add(encoder, &virtio_gpu_enc_helper_funcs); | 292 | drm_encoder_helper_add(encoder, &virtio_gpu_enc_helper_funcs); |
293 | encoder->possible_crtcs = 1 << index; | 293 | encoder->possible_crtcs = 1 << index; |
294 | 294 | ||
295 | drm_mode_connector_attach_encoder(connector, encoder); | 295 | drm_connector_attach_encoder(connector, encoder); |
296 | drm_connector_register(connector); | 296 | drm_connector_register(connector); |
297 | return 0; | 297 | return 0; |
298 | } | 298 | } |
diff --git a/drivers/gpu/drm/vkms/vkms_output.c b/drivers/gpu/drm/vkms/vkms_output.c index a7c0ec9b643f..901012cb1af1 100644 --- a/drivers/gpu/drm/vkms/vkms_output.c +++ b/drivers/gpu/drm/vkms/vkms_output.c | |||
@@ -83,7 +83,7 @@ int vkms_output_init(struct vkms_device *vkmsdev) | |||
83 | } | 83 | } |
84 | encoder->possible_crtcs = 1; | 84 | encoder->possible_crtcs = 1; |
85 | 85 | ||
86 | ret = drm_mode_connector_attach_encoder(connector, encoder); | 86 | ret = drm_connector_attach_encoder(connector, encoder); |
87 | if (ret) { | 87 | if (ret) { |
88 | DRM_ERROR("Failed to attach connector to encoder\n"); | 88 | DRM_ERROR("Failed to attach connector to encoder\n"); |
89 | goto err_attach; | 89 | goto err_attach; |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c index dc0cfda26b1b..a234fe0e1061 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | |||
@@ -438,7 +438,7 @@ static int vmw_ldu_init(struct vmw_private *dev_priv, unsigned unit) | |||
438 | goto err_free_connector; | 438 | goto err_free_connector; |
439 | } | 439 | } |
440 | 440 | ||
441 | (void) drm_mode_connector_attach_encoder(connector, encoder); | 441 | (void) drm_connector_attach_encoder(connector, encoder); |
442 | encoder->possible_crtcs = (1 << unit); | 442 | encoder->possible_crtcs = (1 << unit); |
443 | encoder->possible_clones = 0; | 443 | encoder->possible_clones = 0; |
444 | 444 | ||
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c index 73cf3c6e1591..dd417eb74524 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | |||
@@ -695,7 +695,7 @@ static int vmw_sou_init(struct vmw_private *dev_priv, unsigned unit) | |||
695 | goto err_free_connector; | 695 | goto err_free_connector; |
696 | } | 696 | } |
697 | 697 | ||
698 | (void) drm_mode_connector_attach_encoder(connector, encoder); | 698 | (void) drm_connector_attach_encoder(connector, encoder); |
699 | encoder->possible_crtcs = (1 << unit); | 699 | encoder->possible_crtcs = (1 << unit); |
700 | encoder->possible_clones = 0; | 700 | encoder->possible_clones = 0; |
701 | 701 | ||
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c index a474d87b1af3..4cca78cab03f 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | |||
@@ -1486,7 +1486,7 @@ static int vmw_stdu_init(struct vmw_private *dev_priv, unsigned unit) | |||
1486 | goto err_free_connector; | 1486 | goto err_free_connector; |
1487 | } | 1487 | } |
1488 | 1488 | ||
1489 | (void) drm_mode_connector_attach_encoder(connector, encoder); | 1489 | (void) drm_connector_attach_encoder(connector, encoder); |
1490 | encoder->possible_crtcs = (1 << unit); | 1490 | encoder->possible_crtcs = (1 << unit); |
1491 | encoder->possible_clones = 0; | 1491 | encoder->possible_clones = 0; |
1492 | 1492 | ||
diff --git a/drivers/gpu/drm/zte/zx_hdmi.c b/drivers/gpu/drm/zte/zx_hdmi.c index d073c6737500..78655269d843 100644 --- a/drivers/gpu/drm/zte/zx_hdmi.c +++ b/drivers/gpu/drm/zte/zx_hdmi.c | |||
@@ -326,7 +326,7 @@ static int zx_hdmi_register(struct drm_device *drm, struct zx_hdmi *hdmi) | |||
326 | drm_connector_helper_add(&hdmi->connector, | 326 | drm_connector_helper_add(&hdmi->connector, |
327 | &zx_hdmi_connector_helper_funcs); | 327 | &zx_hdmi_connector_helper_funcs); |
328 | 328 | ||
329 | drm_mode_connector_attach_encoder(&hdmi->connector, encoder); | 329 | drm_connector_attach_encoder(&hdmi->connector, encoder); |
330 | 330 | ||
331 | return 0; | 331 | return 0; |
332 | } | 332 | } |
diff --git a/drivers/gpu/drm/zte/zx_tvenc.c b/drivers/gpu/drm/zte/zx_tvenc.c index 0de1a71ca4e0..b73afb212fb2 100644 --- a/drivers/gpu/drm/zte/zx_tvenc.c +++ b/drivers/gpu/drm/zte/zx_tvenc.c | |||
@@ -297,7 +297,7 @@ static int zx_tvenc_register(struct drm_device *drm, struct zx_tvenc *tvenc) | |||
297 | DRM_MODE_CONNECTOR_Composite); | 297 | DRM_MODE_CONNECTOR_Composite); |
298 | drm_connector_helper_add(connector, &zx_tvenc_connector_helper_funcs); | 298 | drm_connector_helper_add(connector, &zx_tvenc_connector_helper_funcs); |
299 | 299 | ||
300 | drm_mode_connector_attach_encoder(connector, encoder); | 300 | drm_connector_attach_encoder(connector, encoder); |
301 | 301 | ||
302 | return 0; | 302 | return 0; |
303 | } | 303 | } |
diff --git a/drivers/gpu/drm/zte/zx_vga.c b/drivers/gpu/drm/zte/zx_vga.c index 3e78ee21b8d0..23d1ff4355a0 100644 --- a/drivers/gpu/drm/zte/zx_vga.c +++ b/drivers/gpu/drm/zte/zx_vga.c | |||
@@ -175,7 +175,7 @@ static int zx_vga_register(struct drm_device *drm, struct zx_vga *vga) | |||
175 | 175 | ||
176 | drm_connector_helper_add(connector, &zx_vga_connector_helper_funcs); | 176 | drm_connector_helper_add(connector, &zx_vga_connector_helper_funcs); |
177 | 177 | ||
178 | ret = drm_mode_connector_attach_encoder(connector, encoder); | 178 | ret = drm_connector_attach_encoder(connector, encoder); |
179 | if (ret) { | 179 | if (ret) { |
180 | DRM_DEV_ERROR(dev, "failed to attach encoder: %d\n", ret); | 180 | DRM_DEV_ERROR(dev, "failed to attach encoder: %d\n", ret); |
181 | goto clean_connector; | 181 | goto clean_connector; |
diff --git a/drivers/staging/vboxvideo/vbox_mode.c b/drivers/staging/vboxvideo/vbox_mode.c index a943d2f683ed..da4a93df8d75 100644 --- a/drivers/staging/vboxvideo/vbox_mode.c +++ b/drivers/staging/vboxvideo/vbox_mode.c | |||
@@ -655,7 +655,7 @@ static int vbox_connector_init(struct drm_device *dev, | |||
655 | dev->mode_config.suggested_y_property, 0); | 655 | dev->mode_config.suggested_y_property, 0); |
656 | drm_connector_register(connector); | 656 | drm_connector_register(connector); |
657 | 657 | ||
658 | drm_mode_connector_attach_encoder(connector, encoder); | 658 | drm_connector_attach_encoder(connector, encoder); |
659 | 659 | ||
660 | return 0; | 660 | return 0; |
661 | } | 661 | } |
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h index 4411c0542871..f9a78a53bd9f 100644 --- a/include/drm/drm_connector.h +++ b/include/drm/drm_connector.h | |||
@@ -1085,7 +1085,7 @@ int drm_connector_init(struct drm_device *dev, | |||
1085 | int connector_type); | 1085 | int connector_type); |
1086 | int drm_connector_register(struct drm_connector *connector); | 1086 | int drm_connector_register(struct drm_connector *connector); |
1087 | void drm_connector_unregister(struct drm_connector *connector); | 1087 | void drm_connector_unregister(struct drm_connector *connector); |
1088 | int drm_mode_connector_attach_encoder(struct drm_connector *connector, | 1088 | int drm_connector_attach_encoder(struct drm_connector *connector, |
1089 | struct drm_encoder *encoder); | 1089 | struct drm_encoder *encoder); |
1090 | 1090 | ||
1091 | void drm_connector_cleanup(struct drm_connector *connector); | 1091 | void drm_connector_cleanup(struct drm_connector *connector); |