summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-06-21 08:56:54 +1000
committerDave Airlie <airlied@redhat.com>2017-06-21 08:56:54 +1000
commit296923e121693015d1140c42ce14f478d5b24376 (patch)
tree933cd8a516d0fb173a07d70b453e1bf3380a5974 /drivers/gpu/drm
parent305b9eddeec6d47778aafeded63ee8f37b9ddce0 (diff)
downloadblackbird-op-linux-296923e121693015d1140c42ce14f478d5b24376.tar.gz
blackbird-op-linux-296923e121693015d1140c42ce14f478d5b24376.zip
drm/i915: remove rate_to_index, messed up merge.
This was from a merge I did incorrectly. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 31998d09a662..64fa774c855b 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -1548,17 +1548,6 @@ static void intel_dp_print_rates(struct intel_dp *intel_dp)
DRM_DEBUG_KMS("common rates: %s\n", str);
}
-static int rate_to_index(int find, const int *rates)
-{
- int i = 0;
-
- for (i = 0; i < DP_MAX_SUPPORTED_RATES; ++i)
- if (find == rates[i])
- break;
-
- return i;
-}
-
int
intel_dp_max_link_rate(struct intel_dp *intel_dp)
{
OpenPOWER on IntegriCloud