From patchwork Wed Nov 6 14:27:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ricardo Ribalda Delgado X-Patchwork-Id: 3147741 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 98943BEEB2 for ; Wed, 6 Nov 2013 14:28:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 769F5204E2 for ; Wed, 6 Nov 2013 14:28:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5F838204DF for ; Wed, 6 Nov 2013 14:28:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756766Ab3KFO15 (ORCPT ); Wed, 6 Nov 2013 09:27:57 -0500 Received: from mail-lb0-f181.google.com ([209.85.217.181]:42989 "EHLO mail-lb0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756610Ab3KFO1z (ORCPT ); Wed, 6 Nov 2013 09:27:55 -0500 Received: by mail-lb0-f181.google.com with SMTP id x18so7646702lbi.26 for ; Wed, 06 Nov 2013 06:27:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=zAlAEBKE2JpGsCV6bMCR61X3ncQLtDHAaXXVZiWjVCc=; b=ncSvWqa5A6Zm/txVktXpK7W6yvahT6iFkt11XOQurTSGXKEReSWMzP2lY7m/IbdBY2 Ei6EXUVulQyrmTpP2BbuGyt9IBFlM3Y4GkDkLLUuathW/JPJq73zMI3Picy6kfZZPsvu BOB30cSGIPVVflFTDEIu+kuT2PlXzvkVAc87sO2yUiZZ3h3OYj0Shn0iUTxJT4sAx0d4 +2MiRjnDeeUeAjSLTEa/DbfwHFTjzzrq3hj9k+3HSuN+YRI0+RkQMWtcejSM2b8dEKXb DV79KOJT2PaC3f9hpzJSxvJol3Vn503ipWYrt5zcqkhJ8CdLoChrIKINTVNhGKFnSnRo EVZg== X-Received: by 10.152.116.109 with SMTP id jv13mr2596351lab.30.1383748073153; Wed, 06 Nov 2013 06:27:53 -0800 (PST) Received: from neopili.qtec.com (0x4dd4aed9.adsl.cybercity.dk. [77.212.174.217]) by mx.google.com with ESMTPSA id b1sm33332646lah.6.2013.11.06.06.27.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Nov 2013 06:27:52 -0800 (PST) From: Ricardo Ribalda Delgado To: Mauro Carvalho Chehab , "Lad, Prabhakar" , Hans Verkuil , Laurent Pinchart , Guennadi Liakhovetski , linux-media@vger.kernel.org (open list:MEDIA INPUT INFRA...), linux-kernel@vger.kernel.org (open list) Cc: Ricardo Ribalda Delgado Subject: [PATCH] ths7303: Declare as static a private function Date: Wed, 6 Nov 2013 15:27:48 +0100 Message-Id: <1383748068-22182-1-git-send-email-ricardo.ribalda@gmail.com> X-Mailer: git-send-email 1.8.4.rc3 MIME-Version: 1.0 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.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 git grep shows that the function is only called from ths7303.c Fix this build warning: CC drivers/media/i2c/ths7303.o drivers/media/i2c/ths7303.c:86:5: warning: no previous prototype for ‘ths7303_setval’ [-Wmissing-prototypes] int ths7303_setval(struct v4l2_subdev *sd, enum ths7303_filter_mode mode) ^ Signed-off-by: Ricardo Ribalda Delgado Acked-by: Laurent Pinchart --- drivers/media/i2c/ths7303.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/media/i2c/ths7303.c b/drivers/media/i2c/ths7303.c index 42276d9..16da153 100644 --- a/drivers/media/i2c/ths7303.c +++ b/drivers/media/i2c/ths7303.c @@ -83,7 +83,8 @@ static int ths7303_write(struct v4l2_subdev *sd, u8 reg, u8 val) } /* following function is used to set ths7303 */ -int ths7303_setval(struct v4l2_subdev *sd, enum ths7303_filter_mode mode) +static int ths7303_setval(struct v4l2_subdev *sd, + enum ths7303_filter_mode mode) { struct i2c_client *client = v4l2_get_subdevdata(sd); struct ths7303_state *state = to_state(sd);