diff options
author | Haneen Mohammed <hamohammed.sa@gmail.com> | 2017-09-27 14:23:17 -0400 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2017-09-27 16:01:56 -0400 |
commit | 7f909d9c74f3894ba8bca426ead8ccbe7282d950 (patch) | |
tree | cb181bb8e9fcd3f5252e6a74d8dfa23d08e50bca | |
parent | 32ad958d85b92ee7068aa1de5917777be080cc3c (diff) |
drm/rockchip: Rely on the default best_encoder() behavior
Since the output has 1:1 relationship between connectors and encoders,
and the driver is relying on the atomic helpers, remove the custom
best_encoder() and let the core call drm_atomic_helper_best_encoder().
Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20170927182317.GA8249@Haneen
-rw-r--r-- | drivers/gpu/drm/rockchip/cdn-dp-core.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.c b/drivers/gpu/drm/rockchip/cdn-dp-core.c index a57da051f516..275844d0d0ec 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.c +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.c | |||
@@ -287,14 +287,6 @@ static int cdn_dp_connector_get_modes(struct drm_connector *connector) | |||
287 | return ret; | 287 | return ret; |
288 | } | 288 | } |
289 | 289 | ||
290 | static struct drm_encoder * | ||
291 | cdn_dp_connector_best_encoder(struct drm_connector *connector) | ||
292 | { | ||
293 | struct cdn_dp_device *dp = connector_to_dp(connector); | ||
294 | |||
295 | return &dp->encoder; | ||
296 | } | ||
297 | |||
298 | static int cdn_dp_connector_mode_valid(struct drm_connector *connector, | 290 | static int cdn_dp_connector_mode_valid(struct drm_connector *connector, |
299 | struct drm_display_mode *mode) | 291 | struct drm_display_mode *mode) |
300 | { | 292 | { |
@@ -346,7 +338,6 @@ static int cdn_dp_connector_mode_valid(struct drm_connector *connector, | |||
346 | 338 | ||
347 | static struct drm_connector_helper_funcs cdn_dp_connector_helper_funcs = { | 339 | static struct drm_connector_helper_funcs cdn_dp_connector_helper_funcs = { |
348 | .get_modes = cdn_dp_connector_get_modes, | 340 | .get_modes = cdn_dp_connector_get_modes, |
349 | .best_encoder = cdn_dp_connector_best_encoder, | ||
350 | .mode_valid = cdn_dp_connector_mode_valid, | 341 | .mode_valid = cdn_dp_connector_mode_valid, |
351 | }; | 342 | }; |
352 | 343 | ||