From patchwork Thu Jan 1 16:13:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5556891 Return-Path: X-Original-To: patchwork-linux-media@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 D3709BF6C3 for ; Thu, 1 Jan 2015 16:10:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 05FA420221 for ; Thu, 1 Jan 2015 16:10:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 182A2201F5 for ; Thu, 1 Jan 2015 16:10:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751500AbbAAQKW (ORCPT ); Thu, 1 Jan 2015 11:10:22 -0500 Received: from mail-wg0-f50.google.com ([74.125.82.50]:62705 "EHLO mail-wg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751164AbbAAQKV (ORCPT ); Thu, 1 Jan 2015 11:10:21 -0500 Received: by mail-wg0-f50.google.com with SMTP id a1so23136665wgh.23 for ; Thu, 01 Jan 2015 08:10: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=wzOCXfGlk/7AZYs/3uRggh/PxrCRihD/iguzq0vzt+8=; b=azbvf8fbttTVPDf0PEwzk3mshy8PnuAiltQqCPVXp0TMI1pjkRUMt6KHx1+h5YGqjx 5NuHrkIjR2gIbg4hFZcEZqMoEJd502q7lDx713CxzNeuIzWHxSVPUneJCqUayYaB/pQH /JKXqicyRT+7sS+84Gi8KE1YI0QyWpVIN1WPl1SgTkb64yuVaVZZl0WETFwcUKejHzS1 S1GXkuuokDJLviCOTzPdC8q98nThu3TXkpUJX7qL7EAg5HemueZmMZj7q0+Bd6NTc0YT 1wy12ne4cFCtgRXltxkMFCu/BJdADz3KiiC4T3NJpQIR3uPB4/cVxd+T5Y3kaK4tL3Fd KRuw== X-Gm-Message-State: ALoCoQlMCc6d2x7gsPdqPRNZ6OAN2KUaHIJRFeDtNKOfiu8S7wZkhurOTAzzJUdcApDODuKQfy+O X-Received: by 10.194.79.226 with SMTP id m2mr138634448wjx.60.1420128620061; Thu, 01 Jan 2015 08:10: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 je12sm51101169wic.22.2015.01.01.08.10.18 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 08:10:19 -0800 (PST) From: Rickard Strandqvist To: Hans Verkuil , Mauro Carvalho Chehab Cc: Rickard Strandqvist , Grant Likely , Rob Herring , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] media: i2c: adv7604.c: Remove some unused functions Date: Thu, 1 Jan 2015 17:13:20 +0100 Message-Id: <1420128800-28746-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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 Removes some functions that are not used anywhere: vblanking() hblanking() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- drivers/media/i2c/adv7604.c | 10 ---------- drivers/media/i2c/adv7842.c | 10 ---------- drivers/media/i2c/ths8200.c | 10 ---------- 3 files changed, 30 deletions(-) diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 47795ff..0ecca94 100644 --- a/drivers/media/i2c/adv7604.c +++ b/drivers/media/i2c/adv7604.c @@ -333,21 +333,11 @@ static inline struct adv7604_state *to_state(struct v4l2_subdev *sd) return container_of(sd, struct adv7604_state, sd); } -static inline unsigned hblanking(const struct v4l2_bt_timings *t) -{ - return V4L2_DV_BT_BLANKING_WIDTH(t); -} - static inline unsigned htotal(const struct v4l2_bt_timings *t) { return V4L2_DV_BT_FRAME_WIDTH(t); } -static inline unsigned vblanking(const struct v4l2_bt_timings *t) -{ - return V4L2_DV_BT_BLANKING_HEIGHT(t); -} - static inline unsigned vtotal(const struct v4l2_bt_timings *t) { return V4L2_DV_BT_FRAME_HEIGHT(t); diff --git a/drivers/media/i2c/adv7842.c b/drivers/media/i2c/adv7842.c index 48b628b..d89898c 100644 --- a/drivers/media/i2c/adv7842.c +++ b/drivers/media/i2c/adv7842.c @@ -220,21 +220,11 @@ static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl) return &container_of(ctrl->handler, struct adv7842_state, hdl)->sd; } -static inline unsigned hblanking(const struct v4l2_bt_timings *t) -{ - return V4L2_DV_BT_BLANKING_WIDTH(t); -} - static inline unsigned htotal(const struct v4l2_bt_timings *t) { return V4L2_DV_BT_FRAME_WIDTH(t); } -static inline unsigned vblanking(const struct v4l2_bt_timings *t) -{ - return V4L2_DV_BT_BLANKING_HEIGHT(t); -} - static inline unsigned vtotal(const struct v4l2_bt_timings *t) { return V4L2_DV_BT_FRAME_HEIGHT(t); diff --git a/drivers/media/i2c/ths8200.c b/drivers/media/i2c/ths8200.c index 656d889..4ebd329 100644 --- a/drivers/media/i2c/ths8200.c +++ b/drivers/media/i2c/ths8200.c @@ -58,21 +58,11 @@ static inline struct ths8200_state *to_state(struct v4l2_subdev *sd) return container_of(sd, struct ths8200_state, sd); } -static inline unsigned hblanking(const struct v4l2_bt_timings *t) -{ - return V4L2_DV_BT_BLANKING_WIDTH(t); -} - static inline unsigned htotal(const struct v4l2_bt_timings *t) { return V4L2_DV_BT_FRAME_WIDTH(t); } -static inline unsigned vblanking(const struct v4l2_bt_timings *t) -{ - return V4L2_DV_BT_BLANKING_HEIGHT(t); -} - static inline unsigned vtotal(const struct v4l2_bt_timings *t) { return V4L2_DV_BT_FRAME_HEIGHT(t);