summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-03-12 17:10:31 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-03-20 11:48:05 +0100
commitd098a5054373d860f062b42466fb965841c161fe (patch)
tree7c0122d75e7d4ef504b5a7f4d7fb8383b836fc8f /drivers/gpu/drm/i915
parent12f6a2e21be1ec4ad3dd6e2657b675f0779ee907 (diff)
drm/i915: Remove special case from intel_supported_rates()
Now that both source and sink rates are always filled in there's no need for any special cases in intel_supported_rates(). Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Sonika Jindal <sonika.jindal@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915')
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 756917512cb9..4cbb956f0fe3 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -1207,14 +1207,6 @@ static int intel_supported_rates(const int *source_rates, int source_len,
{
int i = 0, j = 0, k = 0;
- /* For panels with edp version less than 1.4 */
- if (sink_len == 0) {
- for (i = 0; i < source_len; ++i)
- supported_rates[i] = source_rates[i];
- return source_len;
- }
-
- /* For edp1.4 panels, find the common rates between source and sink */
while (i < source_len && j < sink_len) {
if (source_rates[i] == sink_rates[j]) {
supported_rates[k] = source_rates[i];