From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0FF5C47254 for ; Tue, 5 May 2020 10:18:02 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B1A7E206CC for ; Tue, 5 May 2020 10:18:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fAIur0Ok" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B1A7E206CC Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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=vbAHttUdnjIpjinx4t3slvWJyi3MNOEU/WHoj2rUPKU=; b=fAIur0OkDbCfaA 4itDQtVtOrcdyz18Uh53QtLFf1qG0CleFn+pHzxFVJlJx/jXzGWaE3QEQOdDtEMhmGVtVP4gDU+ui WBHVsc5HR4OBHcOwPA0oazmBo9+myxLoeTzQ4FsOSQmVII1E7Hgeu7ZbfiwVEv+kLhqLOzNlomcm0 Au4FsxsLm5BnsrPDTtEEoBlvbk/+gUQwdWm7FzGhikmfJM8vLN46ODDSE1sbOZqpTVBNOzWchMiha Am3r/FI+GFiekeliGP9VGXBadqrDWeZmtqy6dBUhSP9omiivaw5W1D2+Q6tNG7OHf73ctt1HFVjiv 3B6UuhLvnf0Ce4XKjxoQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVueA-0004kN-Se; Tue, 05 May 2020 10:17:54 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jVuaV-0007CT-A4 for linux-mtd@lists.infradead.org; Tue, 05 May 2020 10:14:10 +0000 Received: from localhost.localdomain (unknown [IPv6:2a01:e0a:2c:6930:d3ea:1c7:41fd:3038]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id C1D802A1A87; Tue, 5 May 2020 11:14:02 +0100 (BST) From: Boris Brezillon To: Miquel Raynal , linux-mtd@lists.infradead.org, Lubomir Rintel Subject: [PATCH v2 17/19] mtd: rawnand: cafe: s/uint{8,16,32}_t/u{8,16,32}/ Date: Tue, 5 May 2020 12:13:51 +0200 Message-Id: <20200505101353.1776394-18-boris.brezillon@collabora.com> X-Mailer: git-send-email 2.25.3 In-Reply-To: <20200505101353.1776394-1-boris.brezillon@collabora.com> References: <20200505101353.1776394-1-boris.brezillon@collabora.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200505_031407_495776_C86D1733 X-CRM114-Status: GOOD ( 13.35 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Weinberger , Boris Brezillon , Vignesh Raghavendra , Tudor Ambarus Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org Replace uint{8,16,32}_t by u{8,16,32} to make checkpatch happy. Signed-off-by: Boris Brezillon Reviewed-by: Miquel Raynal Tested-by: Lubomir Rintel --- Changes in v2: * Add R-b/T-b --- drivers/mtd/nand/raw/cafe_nand.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/mtd/nand/raw/cafe_nand.c b/drivers/mtd/nand/raw/cafe_nand.c index 74c64af700d5..022c7a3e4073 100644 --- a/drivers/mtd/nand/raw/cafe_nand.c +++ b/drivers/mtd/nand/raw/cafe_nand.c @@ -151,7 +151,7 @@ struct cafe_priv { struct pci_dev *pdev; void __iomem *mmio; struct rs_control *rs; - uint32_t ctl2; + u32 ctl2; bool usedma; dma_addr_t dmaaddr; unsigned char *dmabuf; @@ -209,7 +209,7 @@ static irqreturn_t cafe_nand_interrupt(int irq, void *id) struct mtd_info *mtd = id; struct nand_chip *chip = mtd_to_nand(mtd); struct cafe_priv *cafe = nand_get_controller_data(chip); - uint32_t irqs = cafe_readl(cafe, NAND_IRQ); + u32 irqs = cafe_readl(cafe, NAND_IRQ); cafe_writel(cafe, irqs & ~(CAFE_NAND_IRQ_CMD_DONE | CAFE_NAND_IRQ_DMA_DONE), NAND_IRQ); @@ -240,7 +240,7 @@ static int cafe_nand_read_oob(struct nand_chip *chip, int page) * The hw generator calculates the error syndrome automatically. Therefore * we need a special oob layout and handling. */ -static int cafe_nand_read_page(struct nand_chip *chip, uint8_t *buf, +static int cafe_nand_read_page(struct nand_chip *chip, u8 *buf, int oob_required, int page) { struct mtd_info *mtd = nand_to_mtd(chip); @@ -268,8 +268,8 @@ static int cafe_nand_read_page(struct nand_chip *chip, uint8_t *buf, int i, n; for (i=0; i<8; i+=2) { - uint32_t tmp = cafe_readl(cafe, NAND_ECC_SYN_REG(i)); - uint16_t idx; + u32 tmp = cafe_readl(cafe, NAND_ECC_SYN_REG(i)); + u16 idx; idx = FIELD_GET(CAFE_NAND_ECC_SYN_FIELD(i), tmp); syn[i] = cafe->rs->codec->index_of[idx]; @@ -365,11 +365,11 @@ static const struct mtd_ooblayout_ops cafe_ooblayout_ops = { /* Ick. The BBT code really ought to be able to work this bit out for itself from the above, at least for the 2KiB case */ -static uint8_t cafe_bbt_pattern_2048[] = { 'B', 'b', 't', '0' }; -static uint8_t cafe_mirror_pattern_2048[] = { '1', 't', 'b', 'B' }; +static u8 cafe_bbt_pattern_2048[] = { 'B', 'b', 't', '0' }; +static u8 cafe_mirror_pattern_2048[] = { '1', 't', 'b', 'B' }; -static uint8_t cafe_bbt_pattern_512[] = { 0xBB }; -static uint8_t cafe_mirror_pattern_512[] = { 0xBC }; +static u8 cafe_bbt_pattern_512[] = { 0xBB }; +static u8 cafe_mirror_pattern_512[] = { 0xBC }; static struct nand_bbt_descr cafe_bbt_main_descr_2048 = { @@ -414,7 +414,7 @@ static struct nand_bbt_descr cafe_bbt_mirror_descr_512 = { static int cafe_nand_write_page(struct nand_chip *chip, - const uint8_t *buf, int oob_required, + const u8 *buf, int oob_required, int page) { struct mtd_info *mtd = nand_to_mtd(chip); -- 2.25.3 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/