From patchwork Fri Aug 17 05:08:42 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10781 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 6F08023E02 for ; Fri, 17 Aug 2012 05:10:37 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 1D631A183D9 for ; Fri, 17 Aug 2012 05:10:37 +0000 (UTC) Received: by yhpp61 with SMTP id p61so3878153yhp.11 for ; Thu, 16 Aug 2012 22:10:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=M3r8E5wbKGPuUWzcU/btX5LAf8NDrKtNCW8yA1+3qkE=; b=HvromjxFp9BDGoiBbwtaHUbXUGC76riV/jibLgDeIFU1wmSyuyKK0Lz5tB1krLeMKr jP2KgZOlhkp7MJf5/MUrbIUoH3unc5K9xtU79/QjZ85IKsvhDaquq/hfxmBY46V+dkCj 0TDFzxCP57BfkXr3fxZiprFDYKXfiYdmakjkGHB7uzsHrNe15D7kq0vklDlkP+TN8kFr 1RSso9Lrh3MJH2p4JDsA3n1lK2aDnrNXbMRs3ePeP/Rur+erP+/kLdjvzdsU9hjSr8CT j5iXJbEKWKW5vEpCsjyYCsNB8O8AP1DczjD30ISuOOTK3XKCTZtI9pKjk789hYuNsMh4 Gl3w== Received: by 10.50.94.133 with SMTP id dc5mr595216igb.16.1345180236301; Thu, 16 Aug 2012 22:10:36 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.200 with SMTP id ew8csp170935igc; Thu, 16 Aug 2012 22:10:35 -0700 (PDT) Received: by 10.68.116.17 with SMTP id js17mr8615151pbb.109.1345180235534; Thu, 16 Aug 2012 22:10:35 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id pb4si11408304pbc.60.2012.08.16.22.10.35 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Aug 2012 22:10:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by pbcmd12 with SMTP id md12so3117030pbc.37 for ; Thu, 16 Aug 2012 22:10:35 -0700 (PDT) Received: by 10.68.234.98 with SMTP id ud2mr8402281pbc.165.1345180234969; Thu, 16 Aug 2012 22:10:34 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id oq8sm4140691pbb.13.2012.08.16.22.10.32 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 16 Aug 2012 22:10:34 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: sakari.ailus@iki.fi, mchehab@infradead.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH] [media] smiapp: Remove unused function Date: Fri, 17 Aug 2012 10:38:42 +0530 Message-Id: <1345180122-8922-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkh8AXJ3SzTd+GJek0T2cxdUSN/WJ9wiDaSpzCCcVFB/xIpglKENgyyhfvY3mNZdjI2IqPg smiapp_replace_limit_at() function is not called by the driver. This was detected by sparse as: drivers/media/i2c/smiapp/smiapp-quirk.c:64:5: warning: symbol 'smiapp_replace_limit_at' was not declared. Should it be static? Signed-off-by: Sachin Kamat --- drivers/media/i2c/smiapp/smiapp-quirk.c | 20 -------------------- 1 files changed, 0 insertions(+), 20 deletions(-) diff --git a/drivers/media/i2c/smiapp/smiapp-quirk.c b/drivers/media/i2c/smiapp/smiapp-quirk.c index cf04812..725cf62 100644 --- a/drivers/media/i2c/smiapp/smiapp-quirk.c +++ b/drivers/media/i2c/smiapp/smiapp-quirk.c @@ -61,26 +61,6 @@ void smiapp_replace_limit(struct smiapp_sensor *sensor, sensor->limits[limit] = val; } -int smiapp_replace_limit_at(struct smiapp_sensor *sensor, - u32 reg, u32 val) -{ - struct i2c_client *client = v4l2_get_subdevdata(&sensor->src->sd); - int i; - - for (i = 0; smiapp_reg_limits[i].addr; i++) { - if ((smiapp_reg_limits[i].addr & 0xffff) != reg) - continue; - - smiapp_replace_limit(sensor, i, val); - - return 0; - } - - dev_dbg(&client->dev, "quirk: bad register 0x%4.4x\n", reg); - - return -EINVAL; -} - bool smiapp_quirk_reg(struct smiapp_sensor *sensor, u32 reg, u32 *val) {