From patchwork Fri Sep 22 03:46:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 113950 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp2798210qgf; Thu, 21 Sep 2017 20:49:28 -0700 (PDT) X-Google-Smtp-Source: AOwi7QC25/KXJWsC/74gYns4vtIhPQ6ZvLYRBFvHobWK8LVRv4aT6EftEGHVVy9GnnSgjMg0MtuS X-Received: by 10.99.95.145 with SMTP id t139mr7938227pgb.153.1506052168243; Thu, 21 Sep 2017 20:49:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506052168; cv=none; d=google.com; s=arc-20160816; b=IFkAuL0j+TQVqk08KjwNFCuQ7BtvTPOCmYc8iTNnkxm0Dn/scoGQSuLei2RrQBhNJo oAdMkslRDq0gQ9eB7WOnUi3FNaPt8lr/OYqjwuGpL94HMKEI8xCZDUBd9rnYorn558ww ap0+3/2hdMIxL46of+UO5Ib1GKJOAtK21HnpirzKuEM7962cAG01Qi5HTmKcW6vLysuK Ngr+AV93L1IZ71eNN0GnozBbN9I82yboB12Z68/316RjYq9j94yDETKXHdXbd90wTrUn ewGa+LeZljXjICTlomNsviJseOt1PyYXv4zRy8RZIZ3MPa0oiolbHF+X6bAlYO5kmiRs NICw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:in-reply-to:message-id:date:subject :to:from:dkim-signature:dkim-filter:dkim-signature :arc-authentication-results; bh=Z9qkiFLkPEFPazHeAcAtwq+PvUFAjWUWzQFprlw23lo=; b=NoReYnSGT4OEOYODrHG9ei18/LyDTIGChbtfsf9G02Fyxat6QBDIDuJtuws7l9vQYA nb+ChwpmLzPv+5wgm4psLz9SUcrA2RYrUdtsUtwgU8jje/fa2FNwXCRiqX6BvuFa0Y3/ 6UwAnoffWj3y2WmjiBJu2Yq7HxR7NLx75yO8YCEEyGZql4Qm/8PIONcsWnTtjPdlKZLW mKkjugrKWw7ERkJL47CUmDZPcTxc3769II4S84Yf/eoasroJFVg2btIoz1bdYr3BcUx4 4W5PHTFywBwX5jFVbFJEaly9CSEpPy3sAHtdUWs+K02WbGCQ4EOx7Bwu/8Trnh97lCzF urTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=lHyLByCW; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=bSrk9F5+; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id b76si2074649pfe.314.2017.09.21.20.49.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Sep 2017 20:49:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=lHyLByCW; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=bSrk9F5+; spf=pass (google.com: best guess record for domain of linux-mtd-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-mtd-bounces+patch=linaro.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Z9qkiFLkPEFPazHeAcAtwq+PvUFAjWUWzQFprlw23lo=; b=lHyLByCWRlHTEamAC0QNNnFqnQ BLAZVAmblzX8yoLAh8AhHfFViWqa0of5jK9lIqHMblbUWiguYgfHhqPlF8h2VrJ05JrxMTz+GpRsG tLLdHhQmCroOc0ABWhYwM7wNVpuDLSbPcjUrwf5sS790fhuTKHrQcQXNVagezWumvOz6lUX6DIDII UviuUL7r/7eCz124tA08cA0Rg0pO0FmSRjOhMTQ9iWm6VdmGplZCXVEoNJ+KJAON6AT1U6TGV5NQH /IFNR9JzMI1kMlmGasrUe9sjjgpW0UnJ9koq/NoZYY1k9S1BxkKNU2i059YqGoNxmohSp9PWS2nCM mZnwfVMw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dvExr-0005Jc-TW; Fri, 22 Sep 2017 03:49:19 +0000 Received: from conuserg-09.nifty.com ([210.131.2.76]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dvEwJ-0004FV-3N for linux-mtd@lists.infradead.org; Fri, 22 Sep 2017 03:47:48 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id v8M3kwAL029389; Fri, 22 Sep 2017 12:47:00 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com v8M3kwAL029389 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1506052021; bh=VIRF02KUB9Zm54UAjEG3NU1bHPhUMf2p8M2d+nWMOMc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bSrk9F5+ty+P1l1tufrMoscjLEY0eFWKTwsjFu0DwUmOxWN01G5fgO8jIBpR8Jy8n 5JnjcZqiPnY3uV/1BILtLct30qC+i97Jh0i6mdLtso06Iq5cSaEIhPDd9uCTH1vyEP CHEOKoq9ph7biir3p70bGqT9momqAISDQznPWofE2UlXICq+rAr1galrGuGuGCOoVq 87mInwc4ALvZkEP3RrvAnx2qvpK//QIxvBuSSrKA4fW41FXixVBjkt7o3ucgNEvug/ RCmUYl+OfnhZaqRzAb6KMEK8Eoh39WiF2+TOcutTrNrNo3XI6XIqYzHv5Qo4OIZW8y ZOQuimbY9Nb+g== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Subject: [PATCH v2 02/12] mtd: nand: denali: prefix detect_max_banks() with denali_ Date: Fri, 22 Sep 2017 12:46:39 +0900 Message-Id: <1506052009-8285-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506052009-8285-1-git-send-email-yamada.masahiro@socionext.com> References: <1506052009-8285-1-git-send-email-yamada.masahiro@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170921_204743_534379_D630583C X-CRM114-Status: GOOD ( 10.08 ) X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Boris Brezillon , Marek Vasut , Richard Weinberger , linux-kernel@vger.kernel.org, Masahiro Yamada , Cyrille Pitchen , Brian Norris , David Woodhouse MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org All functions in this driver are prefixed with denali_ except detect_max_banks(). Rename it for consistency. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/mtd/nand/denali.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/ diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c index d847ae4..48193f9 100644 --- a/drivers/mtd/nand/denali.c +++ b/drivers/mtd/nand/denali.c @@ -81,7 +81,7 @@ static void denali_host_write(struct denali_nand_info *denali, * Use the configuration feature register to determine the maximum number of * banks that the hardware supports. */ -static void detect_max_banks(struct denali_nand_info *denali) +static void denali_detect_max_banks(struct denali_nand_info *denali) { uint32_t features = ioread32(denali->reg + FEATURES); @@ -1115,7 +1115,7 @@ static void denali_hw_init(struct denali_nand_info *denali) * if this value is 0, just let it be. */ denali->oob_skip_bytes = ioread32(denali->reg + SPARE_AREA_SKIP_BYTES); - detect_max_banks(denali); + denali_detect_max_banks(denali); iowrite32(0x0F, denali->reg + RB_PIN_ENABLED); iowrite32(CHIP_EN_DONT_CARE__FLAG, denali->reg + CHIP_ENABLE_DONT_CARE);