From patchwork Thu Jan 1 15:34:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5556761 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9D6D6BF6C3 for ; Thu, 1 Jan 2015 15:39:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CEA7020220 for ; Thu, 1 Jan 2015 15:39:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E53CA2021B for ; Thu, 1 Jan 2015 15:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751487AbbAAPjX (ORCPT ); Thu, 1 Jan 2015 10:39:23 -0500 Received: from mail-wg0-f47.google.com ([74.125.82.47]:50027 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750988AbbAAPjW (ORCPT ); Thu, 1 Jan 2015 10:39:22 -0500 Received: by mail-wg0-f47.google.com with SMTP id n12so23217146wgh.20 for ; Thu, 01 Jan 2015 07:39:21 -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=DsZgB7Gvyi+CGzbPZAkyGzJV0IRvaKyX6mYVvKuoc3g=; b=ZrBsHCfq0yVyYlhLwVHT3BN1Twd25vPw0K2DC5QL5Pf28odrme/btdbQqRYf1Rv0Dv +U/C+l0aBRVYKTgvjNQd6H2WaLKow121j6Ivwbg8ZL7LLdhUqBsgwMCJ/F+KCieGuEMg vNe14b5HC+63YX7HuOJgLgAd0E6o+iHwlrllRLyy049ORu48MhA0dIOA3uiwTaysBHpN AH1+zJHyIcuV6oWlnd27xJcStacHuGVFgp0rTkHjgy7EYC4CRuLmzobtsF9+cvCzekXt OiqlPRq3UItndnCjRg9QafeClEh0/VjJ0GN0NnOevtnrwg0yerglqUX2JWnN9kW8rLe1 TClg== X-Gm-Message-State: ALoCoQkzxYL3Z/PcyQr8Yvi6ITW8aKQsxYAnaDUXTrph0VfRd1PIniLL/UP+cif/mdGfM2EdphLS X-Received: by 10.180.206.47 with SMTP id ll15mr127538920wic.34.1420126318011; Thu, 01 Jan 2015 07:31:58 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id fo12sm51002374wic.19.2015.01.01.07.31.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 07:31:57 -0800 (PST) From: Rickard Strandqvist To: Tomi Valkeinen , Jean-Christophe Plagniol-Villard Cc: Rickard Strandqvist , Grant Likely , Rob Herring , Archit Taneja , Tony Lindgren , Jingoo Han , Sathya Prakash M R , Fabian Frederick , linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] video: fbdev: omap2: dss: dss.c: Remove unused function Date: Thu, 1 Jan 2015 16:34:58 +0100 Message-Id: <1420126498-27648-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 dss_get_hdmi_venc_clk_source() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/video/fbdev/omap2/dss/dss.c | 14 -------------- drivers/video/fbdev/omap2/dss/dss.h | 1 - 2 files changed, 15 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/dss.c b/drivers/video/fbdev/omap2/dss/dss.c index 14bcd6c..d9482c8 100644 --- a/drivers/video/fbdev/omap2/dss/dss.c +++ b/drivers/video/fbdev/omap2/dss/dss.c @@ -550,20 +550,6 @@ void dss_select_hdmi_venc_clk_source(enum dss_hdmi_venc_clk_source_select src) REG_FLD_MOD(DSS_CONTROL, src, 15, 15); /* VENC_HDMI_SWITCH */ } -enum dss_hdmi_venc_clk_source_select dss_get_hdmi_venc_clk_source(void) -{ - enum omap_display_type displays; - - displays = dss_feat_get_supported_displays(OMAP_DSS_CHANNEL_DIGIT); - if ((displays & OMAP_DISPLAY_TYPE_HDMI) == 0) - return DSS_VENC_TV_CLK; - - if ((displays & OMAP_DISPLAY_TYPE_VENC) == 0) - return DSS_HDMI_M_PCLK; - - return REG_GET(DSS_CONTROL, 15, 15); -} - static int dss_dpi_select_source_omap2_omap3(enum omap_channel channel) { if (channel != OMAP_DSS_CHANNEL_LCD) diff --git a/drivers/video/fbdev/omap2/dss/dss.h b/drivers/video/fbdev/omap2/dss/dss.h index 8ff22c1..f4bb25b 100644 --- a/drivers/video/fbdev/omap2/dss/dss.h +++ b/drivers/video/fbdev/omap2/dss/dss.h @@ -211,7 +211,6 @@ void dss_uninit_platform_driver(void); unsigned long dss_get_dispc_clk_rate(void); int dss_dpi_select_source(enum omap_channel channel); void dss_select_hdmi_venc_clk_source(enum dss_hdmi_venc_clk_source_select); -enum dss_hdmi_venc_clk_source_select dss_get_hdmi_venc_clk_source(void); const char *dss_get_generic_clk_source_name(enum omap_dss_clk_source clk_src); void dss_dump_clocks(struct seq_file *s);