From patchwork Thu Jun 22 07:50:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 106181 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp2330136qgd; Thu, 22 Jun 2017 00:51:16 -0700 (PDT) X-Received: by 10.80.139.151 with SMTP id m23mr1540872edm.140.1498117876184; Thu, 22 Jun 2017 00:51:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498117876; cv=none; d=google.com; s=arc-20160816; b=Kd2w2cQ/N3FIpxFqB5hOBMZlVf+v7oQbZfon48MyUXB9dqvza7fsSEay85iBYPGWYO MkMAqsaMDDhB6DNFqix2aIIkPUnc3Us1NtiEjCcH1hp3doSyHtJs4g6ROq3ay7cP93uJ pZ3TX0oZIBusoA1bMbHuZMZnL9UoeLRasIwISjiX0UuiUpFH6YK/PfrnM3Y0Yr9ZlbwO T80sVEh/eCA9WbBzaqutErg/iSttTs769WgNte1SLEU4gmoDSAxlEERGkDLtW4jD5LwT HFq/jT4wAkI84o4ux62wbwA54g5HuxB4OH2Xuh26/ofnWfRDAQhGLjE87u62EQp8K7UZ pN6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :dkim-filter:arc-authentication-results; bh=v1laRRFl+E+SO53p7edgM8GgzXTxSCqCZ/odBJK92Ug=; b=NRnP//ZLoeYdnNaHQnSR1jPdrH7fGpZPsKh9H8xZ1aFRhP72yBQpL/wvQn4diZWW0A JXIIPXfJBDysrIinvjay105Q0+UMRlQvjPPeDhavC6tM2F6FAJyLOUM/HR2HaAy//LsY 72M52kVe5wOekxl+qCnG0f6trhEHSb2htXureKVwzHeCpNtWO2h+z3NcpKgACC7h7fp3 YsybCk5VNfBkoaPKFBHIyM9FMOp9EWSh9q0aCSBkdlphTQ790uEB5d8cEdLIrTEN4OIx OCQo6lJplz0HdcZriFqbR0d1mA3nOCBC7g0Q8/GrL28XohwjhVuhuPw90Q4x4/yd3y1X sgKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.b=qP57T5rC; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id m12si1137462edm.96.2017.06.22.00.51.15; Thu, 22 Jun 2017 00:51:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.b=qP57T5rC; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id AE5D9C21C91; Thu, 22 Jun 2017 07:51:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 94AF3C21C62; Thu, 22 Jun 2017 07:51:07 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 46361C21C7A; Thu, 22 Jun 2017 07:51:04 +0000 (UTC) Received: from conuserg-08.nifty.com (conuserg-08.nifty.com [210.131.2.75]) by lists.denx.de (Postfix) with ESMTPS id 3E01EC21C82 for ; Thu, 22 Jun 2017 07:51:02 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id v5M7oQV8030381; Thu, 22 Jun 2017 16:50:26 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v5M7oQV8030381 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1498117826; bh=Az0OM7h446RuGNMKAxByPssogarZL5Bdhpzr3tAJK4Q=; h=From:To:Cc:Subject:Date:From; b=qP57T5rCTKX6CiNV63HaYtBK0hgx+Yfw/7npk5dSofee/94TPHWzvAAupjodyVjfj XuXM9MGav0tAWpSNQNI/H2HWNKvEBojF0y+YkK6J9nUthJooxezcryl9f+nnGhUvaG EKFYcvUH7bwIsmYdvaY8ckd37U4PwDbFmdPOYMbG0i2pLEaRVJorkRQN1j2lrVLP4l RYU2xRzSMGxPqZui7bFBJJRsVXXP7qCDCURJTIy7KNBpvoRR/ddclmatqx/HqXDD/p /VFIccihI8lSqV/NYluVwT7gaN18mlCswVray5bb+QYYN4Od8nMMuNPMThvv+vsrlJ W6R5kc9tnuMpg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 22 Jun 2017 16:50:25 +0900 Message-Id: <1498117825-6158-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Subject: [U-Boot] [PATCH] gpio: add static to get_function() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Signed-off-by: Masahiro Yamada Reviewed-by: Bin Meng Reviewed-by: Simon Glass --- drivers/gpio/gpio-uclass.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index f611996f1729..9faf3357af8b 100644 --- a/drivers/gpio/gpio-uclass.c +++ b/drivers/gpio/gpio-uclass.c @@ -494,8 +494,8 @@ static const char * const gpio_function[GPIOF_COUNT] = { "func", }; -int get_function(struct udevice *dev, int offset, bool skip_unused, - const char **namep) +static int get_function(struct udevice *dev, int offset, bool skip_unused, + const char **namep) { struct gpio_dev_priv *uc_priv = dev_get_uclass_priv(dev); struct dm_gpio_ops *ops = gpio_get_ops(dev);