From patchwork Tue Jan 13 19:09:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5625601 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 744729F2ED for ; Wed, 14 Jan 2015 03:23:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EFBC82039D for ; Wed, 14 Jan 2015 03:23:00 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A421320396 for ; Wed, 14 Jan 2015 03:22:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4F9366E6F1; Tue, 13 Jan 2015 19:22:47 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id C00B56E480 for ; Tue, 13 Jan 2015 11:06:20 -0800 (PST) Received: by mail-we0-f177.google.com with SMTP id q59so4704321wes.8 for ; Tue, 13 Jan 2015 11:06:20 -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=z4B5T+/MzjSuIwBUsXwFUokQT13tNdCn/1JkUNqBAM0=; b=j0LhtbOKY95f5I6CawUdFTVmXOgHYD8uGwCFesI3NiGPDB3xOjtCrA6zFr5bbEgah7 2+3QIXP8mtfBd1KMJ4gC97+QpKph5DjltyGc3E0CzmsnQAFvtNKY3E2/RziXc3Pl8jb4 d2XxI2M6Q5l+ThrN95XjC58BDys/3VLoUki8vDgjrlrw7ca1PUx2sWYPK/XibGU8ccqF iV/O5ROsJDUvr2+g08bks2exQBJcE8A5LK6ABq9O2fhOhuW9/SA3K0lJ0F7Np8Y95+6m DN1VHaA1+v4HRgQSiMPjMsV3HpolF5atYdzWoKRm0kBHXm/opQOoFz0OU2PKVmqOcxM2 4dcA== X-Gm-Message-State: ALoCoQk9kQwH2IILkTkqlqCwm1BGymB6NfF9sqZwcPrO+GG79TpRSNRfMluqWF8PA6kHXPPukc/V X-Received: by 10.180.107.136 with SMTP id hc8mr1616832wib.32.1421175980008; Tue, 13 Jan 2015 11:06:20 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id s9sm130658wiz.12.2015.01.13.11.06.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Jan 2015 11:06:19 -0800 (PST) From: Rickard Strandqvist To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= Subject: [PATCH] drm/radeon/radeon_i2c: Remove unused function Date: Tue, 13 Jan 2015 20:09:27 +0100 Message-Id: <1421176167-7180-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 X-Mailman-Approved-At: Tue, 13 Jan 2015 19:22:45 -0800 Cc: 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=unavailable 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 radeon_best_encoder() 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/radeon/radeon_i2c.c | 5 ----- drivers/gpu/drm/radeon/radeon_mode.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/radeon/radeon_i2c.c index add6220..9590bcd 100644 --- a/drivers/gpu/drm/radeon/radeon_i2c.c +++ b/drivers/gpu/drm/radeon/radeon_i2c.c @@ -1048,11 +1048,6 @@ struct radeon_i2c_chan *radeon_i2c_lookup(struct radeon_device *rdev, return NULL; } -struct drm_encoder *radeon_best_encoder(struct drm_connector *connector) -{ - return NULL; -} - void radeon_i2c_get_byte(struct radeon_i2c_chan *i2c_bus, u8 slave_addr, u8 addr, diff --git a/drivers/gpu/drm/radeon/radeon_mode.h b/drivers/gpu/drm/radeon/radeon_mode.h index 04db2fd..66c17e3 100644 --- a/drivers/gpu/drm/radeon/radeon_mode.h +++ b/drivers/gpu/drm/radeon/radeon_mode.h @@ -740,8 +740,6 @@ extern void radeon_router_select_ddc_port(struct radeon_connector *radeon_connec extern void radeon_router_select_cd_port(struct radeon_connector *radeon_connector); extern bool radeon_ddc_probe(struct radeon_connector *radeon_connector, bool use_aux); -extern struct drm_encoder *radeon_best_encoder(struct drm_connector *connector); - extern bool radeon_atombios_get_ppll_ss_info(struct radeon_device *rdev, struct radeon_atom_ss *ss, int id);