Message ID | 1490191680-14481-10-git-send-email-yamada.masahiro@socionext.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp232826obz; Wed, 22 Mar 2017 07:09:47 -0700 (PDT) X-Received: by 10.84.173.4 with SMTP id o4mr56519515plb.106.1490191787190; Wed, 22 Mar 2017 07:09:47 -0700 (PDT) Return-Path: <linux-mtd-bounces+patch=linaro.org@lists.infradead.org> Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id p17si1974878pgi.67.2017.03.22.07.09.47 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Mar 2017 07:09:47 -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; dkim=neutral (body hash did not verify) header.i=@nifty.com; 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=cFiKhxZcc3DkqABmDBl72SEMaNolQgZ3BZauZ6mJuTU=; b=X6hpvrErayt+/RS3Hlq3VrwFqF lYKtxCdJjS1ktk9GLZPP2m3j6tEhXq7Kw28zkN6IYDkcxyvGMqBn2+UiqF1ZGfuX/0XNQNI69yGAl dimt0UosqxngTYOrNlGHbOpG44rAbWx0PuY+nUi7d+7DXYJRSpRVVLYwol7zH44pxHur5zEfoElRk cT+Zn5f5lLx4IDZOONVmIa5QW3FM1kB6b+Vv8DY8H8rSCu7dcTkqG32VtxqYo5B9EA0B9lBBNG6ZL 0gCR4riqBkbfDUvh45F6/3nvVMcD/cj+8SR4QNu6I50DpFN5tb9jzi2bP4lu215OZdhaX0/IKU7vz yXaseOGQ==; 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 1cqgxL-0006Kv-Rd; Wed, 22 Mar 2017 14:09:43 +0000 Received: from conuserg-07.nifty.com ([210.131.2.74]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cqgx3-0005xD-N9 for linux-mtd@lists.infradead.org; Wed, 22 Mar 2017 14:09:27 +0000 Received: from pug.jp.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id v2ME8LDS010154; Wed, 22 Mar 2017 23:08:35 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v2ME8LDS010154 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1490191717; bh=6+m75OZlPBI+hfQ0sp61KS0/EN+hKn2K4d9pI5zhNHo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OVC0aQ7rmOBqztL+5lSoeKyPfsBLMhRldYG8ZniEsIg3pm2uZW/bFb+gmwRlzUj03 tYbfJzV80AO+ar3lYooJGHeW8jCVDD4p0iNo6ASHUIEEsyR1bVlIMxpbTXjN3JXPT4 9Fi6Feizk2GScVBJwvPibzmlhkxkpLSJAPXaenVYO6z0CpGBr+VI5WMSXQ+Mk68rHb KUXjNGP+e+xc1IrtYfa4xGJa9e6m+xYBKO2N06hDK6kdoPPs2iy/JuOUOuVE4yDwim sR0m3THuMqa4Y/Byoj1+qdb+TVSTlycsjpVGM5bpjBrbKwmtvrwaGJrzVrsIrAvj1d QAeiUOmYbtbQw== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada <yamada.masahiro@socionext.com> To: linux-mtd@lists.infradead.org Subject: [PATCH v2 09/53] mtd: nand: denali: use int where no reason to use fixed width variable Date: Wed, 22 Mar 2017 23:07:16 +0900 Message-Id: <1490191680-14481-10-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490191680-14481-1-git-send-email-yamada.masahiro@socionext.com> References: <1490191680-14481-1-git-send-email-yamada.masahiro@socionext.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170322_070926_131686_4D8CC17C X-CRM114-Status: UNSURE ( 9.31 ) 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_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Cc: laurent.monat@idquantique.com, Boris Brezillon <boris.brezillon@free-electrons.com>, thorsten.christiansson@idquantique.com, Richard Weinberger <richard@nod.at>, Marek Vasut <marek.vasut@gmail.com>, Masahiro Yamada <yamada.masahiro@socionext.com>, Artem Bityutskiy <artem.bityutskiy@linux.intel.com>, Cyrille Pitchen <cyrille.pitchen@atmel.com>, Jason Roberts <jason.e.roberts@intel.com>, linux-kernel@vger.kernel.org, Dinh Nguyen <dinguyen@kernel.org>, Masami Hiramatsu <mhiramat@kernel.org>, Chuanxiao Dong <chuanxiao.dong@intel.com>, Jassi Brar <jaswinder.singh@linaro.org>, Brian Norris <computersforpeace@gmail.com>, Enrico Jorns <ejo@pengutronix.de>, David Woodhouse <dwmw2@infradead.org>, Graham Moore <grmoore@opensource.altera.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+patch=linaro.org@lists.infradead.org |
Series |
[v2,01/53] mtd: nand: allow to set only one of ECC size and ECC strength from DT
|
expand
|
diff --git a/drivers/mtd/nand/denali.h b/drivers/mtd/nand/denali.h index eed001d..7b2d785 100644 --- a/drivers/mtd/nand/denali.h +++ b/drivers/mtd/nand/denali.h @@ -325,7 +325,7 @@ struct denali_nand_info { struct nand_buf buf; struct device *dev; int total_used_banks; - uint16_t page; + int page; void __iomem *flash_reg; /* Register Interface */ void __iomem *flash_mem; /* Host Data/Command Interface */ @@ -335,9 +335,9 @@ struct denali_nand_info { uint32_t irq_status; int irq; - uint32_t devnum; /* represent how many nands connected */ - uint32_t bbtskipbytes; - uint32_t max_banks; + int devnum; /* represent how many nands connected */ + int bbtskipbytes; + int max_banks; unsigned int caps; };
The page number is generally stored in an integer type variable. The uint16_t does not have enough width. I see no reason to use uint32_t for other members, either. Just use int. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> --- Changes in v2: None drivers/mtd/nand/denali.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.7.4 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/