From patchwork Wed Sep 13 05:20: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: 112398 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp534292qgf; Tue, 12 Sep 2017 22:22:09 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6gqaXRs2eUFuP4Q3cfVRPnXrDrRmbmgB+oQYuOUXEOSbegG9vYEOyCDXkUmpFQ3q6SKr+C X-Received: by 10.99.121.129 with SMTP id u123mr17229898pgc.246.1505280129914; Tue, 12 Sep 2017 22:22:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505280129; cv=none; d=google.com; s=arc-20160816; b=D+vgf0B203HeR3hi8KgYtm48fheVUA7Mm2j2w/S3yQ13BBi1u8qqm532pK+WPHxFUn 1SRna+an58Ch+PJ7F+8nA+PPvRIWrBpawAyL3AZCAg8joYusYmmFSq4xtc1MI+N0VpW4 2hKLtuYo3km3Tx8yao7Pp43NZqt8pfSgaiIaGfaHnX4xMQjAN4bM75YzZ9/9anrznaAO 4EIagl+6KyhxLq+dyLTYT1julX9bMKttu6hM6uKup6ZWgvD3T+qPuimeV0Fg91VnqjSu CD8PF2+A8sD05Wa5xy8ime24G7p/EwymKWrykgviRa6gJ0oa6qAAhc57sVKcFAP/bCxp 2nRw== 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=DBcyv0TWgyQtPllE5G+Yk2rbu9KUh0UzGjTSQivcL0s=; b=sVRZue8wLUIHzt+V77lKoVangkjETYZfMH3IImrQHXIh3EK7qJItcikjsoTErJK1Uj dvxlzdu1IieaHSsfNJJEnFRo7zulgGWVyst11zGqQEIr1cMb5XaCpywqTvCLAQ55VGHH mRgpbe6SI/ERPxxOrwaatP3/hZD4Zd2fUTqKp/6dEWSQhYRhKaeL+k/9K/c+IswjqyYu GPdnR08ryoTklSHB52en24N+8r8mZC53L4YmFOI4KRa0KVdfRi7mCY3vrSS1pkhTOkDC HDekdCLhcWyP5N9WdpmU/2t2X8jTozwoP59Ac9HBfsAPzmdhfdYbMrmtk0vT0wyQTRls WNEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20170209 header.b=GRsRhb4j; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=hd1PT2fu; 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 32si9844008pld.84.2017.09.12.22.22.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2017 22:22:09 -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=GRsRhb4j; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=hd1PT2fu; 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=DBcyv0TWgyQtPllE5G+Yk2rbu9KUh0UzGjTSQivcL0s=; b=GRsRhb4jiU2/Lww3QcnocV0Red wtyRLewKGBIivHMgllJd+NYshUd1uNUKX4XcDblNmIBEddnGYX8JHHzyKpZ9kJFvrZsEfGZJOepOP qZzykXQGWlGGdC34//lwXgF9aq7ktBO5MliOcBp8jQevQ1pNYT49ONuVWhEmorukBu2PcaIu+7yXv 2oIicrGquHuwwKXU9SMpDTsA5CK0McthTfVlLlcmj6mxfhQW5ZKO7x86TAiq03h0w/NIUiW6p7M4V m8zH3pHw50Bp2Ac3CoisLBPyhE1OPzk+VclHnQP3NlqimM0wj1akCQF5SarIdQkauPrdcQNahKuIZ TZc/hy3Q==; 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 1ds07W-0006fp-Vg; Wed, 13 Sep 2017 05:21:55 +0000 Received: from conuserg-12.nifty.com ([210.131.2.79]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ds07J-0006Xm-ND for linux-mtd@lists.infradead.org; Wed, 13 Sep 2017 05:21:44 +0000 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id v8D5Kpx1010397; Wed, 13 Sep 2017 14:20:53 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com v8D5Kpx1010397 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1505280053; bh=9/tfHoJ1qCklx6/AljUNKgsVMXdwag1jSvRgNprXEec=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hd1PT2fusH37l/dbVSMfIoNHX3kOAZUn2gPS4kYfw5K/k/D2UDvhq2TWv6Kacz71P VvHQen4o0uEUy6vAGsiMDtvHP8OZ12O21byL5Py/zIDePiBmsOUrxsNXbifPzHla5G 9LZ6aSeRUKJnE0laNlemP9evuI0+DjaicQQg7L58e56EVADgRv55y/8apRf/VZcfXJ MJOwJh+UvE5jcVWmxgVKXcExozrOFok98BhcPgrchMQpFWah/xOaQjBgDwfE/VFBen v4z4qqeIsHxa6X6cGygxGhk+dsGWBLFSKaxohQD0rLq0Loi9ZgZo8D6BB6MGIFoY81 /FwJdTH+8fcBA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org Subject: [PATCH 2/9] mtd: nand: denali: prefix detect_max_banks() with denali_ Date: Wed, 13 Sep 2017 14:20:39 +0900 Message-Id: <1505280046-16608-3-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505280046-16608-1-git-send-email-yamada.masahiro@socionext.com> References: <1505280046-16608-1-git-send-email-yamada.masahiro@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170912_222142_255718_C631C0C9 X-CRM114-Status: UNSURE ( 9.99 ) X-CRM114-Notice: Please train this message. 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 --- 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);