Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76667C6FD18 for ; Tue, 18 Apr 2023 15:32:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E6006860AF; Tue, 18 Apr 2023 17:31:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="O2m0nAdz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BFF07860B3; Tue, 18 Apr 2023 17:31:23 +0200 (CEST) Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B90C18608F for ; Tue, 18 Apr 2023 17:31:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd36.google.com with SMTP id ca18e2360f4ac-76016d1fe6bso279811539f.3 for ; Tue, 18 Apr 2023 08:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1681831878; x=1684423878; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nLVmYHWkgWHjRpbxM+PLagGuItQRQ/3QDz2FD2RP4gU=; b=O2m0nAdzQfML8BqUKUclUcPhIQRPMcSKjoCxieSz75whCsYVTf3ezIHuvuGTVCL6zc Yk5SBsFmgNuAknhQHPUSaq/D/EWXxki+gKtFRwYPOhcVVClLGpHD8QyuiRv8E6HjCJ6T DGhKnp93KPKCzGv4gDSL6qpmZksjME3oBnqSA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681831878; x=1684423878; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nLVmYHWkgWHjRpbxM+PLagGuItQRQ/3QDz2FD2RP4gU=; b=Yaw6/Pdm6rCI8c+L0Zv2Kbes16m3nOQFxikCTJUIj0/Af6sAInFMCwt463NypZ3Wuf Ogn1EHhsTNmL3/pFdeniEbkIr35mdebW2BmYe9nuTczfC3Dbc/SbSg/8D1CnXXFjKrls ZiGurNUCLViRAMl5y6mHL1xUpLcQHSXJIpGMUH5UwSrbOqwD53vW5sQFXMb5xpGOi3Da orvh+Mh7tFPnK1H4nz4O8Yl7QbLsRolyS4ZJqPdXv7wU6nQUVuUbVzivJzvVdFFokp80 6LITEcJAALm2F97kJFWsRmXngZT4S7N/uCHW3jrd6m2aGILsnT+ugKJg1djPcIHG0szi SL8Q== X-Gm-Message-State: AAQBX9e70YuZ5wynxvBnQeO1jd10H8CDRm+gHrrn8mI4+bK1PAIh2/NM tyNPXG5SUYlZdIYfWS6Yv81q98LGZSAqcAihjZ8= X-Google-Smtp-Source: AKy350aavnkEmn15DOQnDs5l0FN+Crt3taxCFDk4VIXkD0SmCPGzCNibLuaSX79ZZU3o2y2KU/5DMw== X-Received: by 2002:a6b:db08:0:b0:746:1b8:8687 with SMTP id t8-20020a6bdb08000000b0074601b88687mr2104980ioc.14.1681831878094; Tue, 18 Apr 2023 08:31:18 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id x8-20020a5d9448000000b0075845625e38sm4005945ior.28.2023.04.18.08.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 08:31:17 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Simon Glass , Jagan Teki , Mike Frysinger , Vignesh R Subject: [PATCH v2 04/18] sf: Rename spi-nor-tiny functions Date: Wed, 19 Apr 2023 03:30:47 +1200 Message-ID: <20230418153101.115816-5-sjg@chromium.org> X-Mailer: git-send-email 2.40.0.634.g4ca3ef3211-goog In-Reply-To: <20230418153101.115816-1-sjg@chromium.org> References: <20230418153101.115816-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The 'tiny' SPI nor functions have the same name as their big brothers, which can be confusing. Use different names so it is clear which version is in the image. Signed-off-by: Simon Glass --- (no changes since v1) drivers/mtd/spi/spi-nor-tiny.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/mtd/spi/spi-nor-tiny.c b/drivers/mtd/spi/spi-nor-tiny.c index 68152ce3b4b9..7aa24e129f96 100644 --- a/drivers/mtd/spi/spi-nor-tiny.c +++ b/drivers/mtd/spi/spi-nor-tiny.c @@ -361,7 +361,7 @@ static int spi_nor_wait_till_ready(struct spi_nor *nor) * Erase an address range on the nor chip. The address range may extend * one or more erase sectors. Return an error is there is a problem erasing. */ -static int spi_nor_erase(struct mtd_info *mtd, struct erase_info *instr) +static int spi_nor_erase_tiny(struct mtd_info *mtd, struct erase_info *instr) { return -ENOTSUPP; } @@ -390,8 +390,8 @@ static const struct flash_info *spi_nor_read_id(struct spi_nor *nor) return ERR_PTR(-EMEDIUMTYPE); } -static int spi_nor_read(struct mtd_info *mtd, loff_t from, size_t len, - size_t *retlen, u_char *buf) +static int spi_nor_read_tiny(struct mtd_info *mtd, loff_t from, size_t len, + size_t *retlen, u_char *buf) { struct spi_nor *nor = mtd_to_spi_nor(mtd); int ret; @@ -426,8 +426,8 @@ read_err: * FLASH_PAGESIZE chunks. The address range may be any size provided * it is within the physical boundaries. */ -static int spi_nor_write(struct mtd_info *mtd, loff_t to, size_t len, - size_t *retlen, const u_char *buf) +static int spi_nor_write_tiny(struct mtd_info *mtd, loff_t to, size_t len, + size_t *retlen, const u_char *buf) { return -ENOTSUPP; } @@ -741,9 +741,9 @@ int spi_nor_scan(struct spi_nor *nor) mtd->writesize = 1; mtd->flags = MTD_CAP_NORFLASH; mtd->size = info->sector_size * info->n_sectors; - mtd->_erase = spi_nor_erase; - mtd->_read = spi_nor_read; - mtd->_write = spi_nor_write; + mtd->_erase = spi_nor_erase_tiny; + mtd->_read = spi_nor_read_tiny; + mtd->_write = spi_nor_write_tiny; nor->size = mtd->size; -- 2.40.0.634.g4ca3ef3211-goog