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: 1337071 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id A6235DF266 for ; Fri, 17 Aug 2012 05:10:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752941Ab2HQFKh (ORCPT ); Fri, 17 Aug 2012 01:10:37 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:35341 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751847Ab2HQFKf (ORCPT ); Fri, 17 Aug 2012 01:10:35 -0400 Received: by pbbrr13 with SMTP id rr13so2738820pbb.19 for ; Thu, 16 Aug 2012 22:10:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=M3r8E5wbKGPuUWzcU/btX5LAf8NDrKtNCW8yA1+3qkE=; b=PjB1L0d/2XMQfIYzi3HW9t7GyCHrJhqS0xBkoYDIJU8s0e02x1+X7Jd0E1/6YmAh7j Sv1GqWcZpcVHN5XQQZlm8Q7Vvim04nd6Ome8FCy1G49Vr0GwlwEKe9xBRLxuQWkiXeIh 8QhUanzebPfRbCObDvfhQCyltxGbr0XPj0m5752TSjBQjefWbJbzyadyuF926UjESql+ HbEB0TKOywxx+152cjsdbx5V2quF890mPPheWVQQDTSAeoXiIxKByaK+8wbvkat1diy8 tm0B0EtskBgdm64IkbcS6fNAM+lOXMIozmyPtbWBGUxA5KVtVeH6RM5YYa1sxieqSEKU 4jlw== 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: ALoCoQllQ5YYVzlPUzjklY+xQ5RMyPaz/J9yJoghyFZpFngUyaCx1JuB9FgCGEuomv7kunlz+PrT Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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) {