From patchwork Sun Dec 7 21:50:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5453591 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7FD8DBEEA8 for ; Mon, 8 Dec 2014 00:50:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B6BAA2010B for ; Mon, 8 Dec 2014 00:50:11 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 09EDE2012E for ; Mon, 8 Dec 2014 00:50:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C73836E463; Sun, 7 Dec 2014 16:50:05 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by gabe.freedesktop.org (Postfix) with ESMTP id 69A046E3A9 for ; Sun, 7 Dec 2014 13:48:16 -0800 (PST) Received: by mail-wg0-f47.google.com with SMTP id n12so4841162wgh.20 for ; Sun, 07 Dec 2014 13:48:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=4YH0vZDmkq1He9nlPPN1iTcGnCkOJAeiDPE1QpD7G9w=; b=E9Leot4W3qnqGk9Spev7c0OHHnWSrueOVh0GOlmsMZHD06xRCeRBCG0N2dfLW9FrpW 6iEymJMdh8qKeqle5/41C/2p0cZdoClwiwCKEzSFLtXs1w2epd+NDtiHrGZnoRRvCjBO TOrRM2aTOdmwf2oF+4dcMAj4a9ZCQ5zNqdmKgBTG0Jk+xzk3a/fuHz7u4VWVeYkx5Wd9 0mfM0A6sKyGUhyUv4iLUDxu2Imy4utFjXiWuRI/GXxV1cbQxKLtPtUSoNnwyfHkfOadC KHumTlNK5RnT8PMfoRsVIGxdvAvGyUEQaYU9dcRD+6fPSwPdfM3gOyohfFloKaSieuft Em/g== X-Gm-Message-State: ALoCoQn1ED/lF4HZG15RiX1MNYr8pF7nB2frkBFwUzpcGFOZSh4voLmbD1bWn7CTyqZaeIpyLwFR X-Received: by 10.180.205.163 with SMTP id lh3mr19896192wic.63.1417988895486; Sun, 07 Dec 2014 13:48:15 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id gf6sm41314490wjc.11.2014.12.07.13.48.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Dec 2014 13:48:14 -0800 (PST) From: Rickard Strandqvist To: Daniel Vetter , Jani Nikula Subject: [PATCH] gpu: drm: i915: intel_dsi_cmd.c: Remove unused function Date: Sun, 7 Dec 2014 22:50:55 +0100 Message-Id: <1417989055-17859-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-Mailman-Approved-At: Sun, 07 Dec 2014 16:50:00 -0800 Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Rickard Strandqvist X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the function dsi_hs_mode_enable() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/gpu/drm/i915/intel_dsi_cmd.c | 21 --------------------- drivers/gpu/drm/i915/intel_dsi_cmd.h | 2 -- 2 files changed, 23 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_dsi_cmd.c b/drivers/gpu/drm/i915/intel_dsi_cmd.c index f4767fd..71addcc 100644 --- a/drivers/gpu/drm/i915/intel_dsi_cmd.c +++ b/drivers/gpu/drm/i915/intel_dsi_cmd.c @@ -103,27 +103,6 @@ enum dsi_type { DSI_GENERIC, }; -/* enable or disable command mode hs transmissions */ -void dsi_hs_mode_enable(struct intel_dsi *intel_dsi, bool enable) -{ - struct drm_encoder *encoder = &intel_dsi->base.base; - struct drm_device *dev = encoder->dev; - struct drm_i915_private *dev_priv = dev->dev_private; - struct intel_crtc *intel_crtc = to_intel_crtc(encoder->crtc); - enum pipe pipe = intel_crtc->pipe; - u32 temp; - u32 mask = DBI_FIFO_EMPTY; - - if (wait_for((I915_READ(MIPI_GEN_FIFO_STAT(pipe)) & mask) == mask, 50)) - DRM_ERROR("Timeout waiting for DBI FIFO empty\n"); - - temp = I915_READ(MIPI_HS_LP_DBI_ENABLE(pipe)); - temp &= DBI_HS_LP_MODE_MASK; - I915_WRITE(MIPI_HS_LP_DBI_ENABLE(pipe), enable ? DBI_HS_MODE : DBI_LP_MODE); - - intel_dsi->hs = enable; -} - static int dsi_vc_send_short(struct intel_dsi *intel_dsi, int channel, u8 data_type, u16 data) { diff --git a/drivers/gpu/drm/i915/intel_dsi_cmd.h b/drivers/gpu/drm/i915/intel_dsi_cmd.h index 46aa1ac..7ad54c0 100644 --- a/drivers/gpu/drm/i915/intel_dsi_cmd.h +++ b/drivers/gpu/drm/i915/intel_dsi_cmd.h @@ -36,8 +36,6 @@ #define DPI_LP_MODE_EN false #define DPI_HS_MODE_EN true -void dsi_hs_mode_enable(struct intel_dsi *intel_dsi, bool enable); - int dsi_vc_dcs_write(struct intel_dsi *intel_dsi, int channel, const u8 *data, int len);