From: Todd Previte Subject: [PATCH 04/12] drm/i915: Add wrapper function for intel_crtc_set_config() Date: Mon, 14 Jul 2014 12:10:39 -0700 Message-ID: <1405365047-6866-5-git-send-email-tprevite@gmail.com> References: <1405365047-6866-1-git-send-email-tprevite@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by gabe.freedesktop.org (Postfix) with ESMTP id 2197F6E466 for ; Mon, 14 Jul 2014 12:11:24 -0700 (PDT) Received: by mail-pa0-f50.google.com with SMTP id et14so400708pad.37 for ; Mon, 14 Jul 2014 12:11:23 -0700 (PDT) In-Reply-To: <1405365047-6866-1-git-send-email-tprevite@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Add a wrapper around intel_crtc_set_config() to allow it to be called from the DP compliance test functions. This is necessary to perform the internal mode set operations required for compliance testing. Signed-off-by: Todd Previte --- drivers/gpu/drm/i915/intel_display.c | 6 ++++++ drivers/gpu/drm/i915/intel_drv.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index fa77557..77ab4f3 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -11249,6 +11249,12 @@ out_config: return ret; } +/* Wrapper function for setting a configuration for DP compliance testing */ +int intel_dp_set_config(struct drm_mode_set *set) +{ + return intel_crtc_set_config(set); +} + static const struct drm_crtc_funcs intel_crtc_funcs = { .gamma_set = intel_crtc_gamma_set, .set_config = intel_crtc_set_config, diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 5f7c7bd..d2ae54f 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -836,6 +836,8 @@ void intel_mode_from_pipe_config(struct drm_display_mode *mode, struct intel_crtc_config *pipe_config); int intel_format_to_fourcc(int format); void intel_crtc_wait_for_pending_flips(struct drm_crtc *crtc); +/* Wrapper function for setting a configuration for DP compliance testing */ +int intel_dp_set_config(struct drm_mode_set *set); /* intel_dp.c */ -- 1.9.1