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: 5556771 Return-Path: X-Original-To: patchwork-linux-omap@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 176839F344 for ; Thu, 1 Jan 2015 15:39:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4562D2021B for ; Thu, 1 Jan 2015 15:39:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6271D20221 for ; Thu, 1 Jan 2015 15:39:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751943AbbAAPjY (ORCPT ); Thu, 1 Jan 2015 10:39:24 -0500 Received: from mail-wg0-f44.google.com ([74.125.82.44]:59385 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750988AbbAAPjY (ORCPT ); Thu, 1 Jan 2015 10:39:24 -0500 Received: by mail-wg0-f44.google.com with SMTP id b13so23207108wgh.17 for ; Thu, 01 Jan 2015 07:39:22 -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=GjTEaVxVEnxTduCd0V+5vJ07b4/PbAdEA2QvDKMTkZrUa6ZbuTf/PxCJNd6YjXmtU2 Q2Hy4HS4EvT3vNTNwIlp93d4xbulizta3mIRWz5bqTN/wRbzT7K2USxHPnZZFZiLz+oP e2+084mHPD2MXkqBDbVaoAT9kJq57xfJFTrXArX5jS0FOh7J/PmANBuV2/EHzaqNIPoA TAQn2L1/9dkqDXML2d7H4npkrzJ58oc8u9iZcRrF9Wnl9Tqwgeae/RVeVgPtj+G7TcH3 Q3WPr43PJidw9VRvgDoL/LUrufBlWhx30hpciLCZNnmRqTP/XJAShJwzEBt09ZUxEzLU kKcA== X-Gm-Message-State: ALoCoQkmk0v1zlF/un2kgV1WW/zt/6p0Sg1a4UyNve6wOnibCclP8jkYfQNnRLpNy4Z4a0L07q8P 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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@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);