Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4431417pxb; Mon, 21 Feb 2022 21:24:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfdvX1lp98Y3j8WAN6u5IimZ/Ow7RtD15pTbuXchs+3WBih5eZewtZGD9dr12QdmAK/mPS X-Received: by 2002:a17:902:7d81:b0:14f:e18b:2b9e with SMTP id a1-20020a1709027d8100b0014fe18b2b9emr885776plm.160.1645507491407; Mon, 21 Feb 2022 21:24:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645507491; cv=none; d=google.com; s=arc-20160816; b=Rv6BOkF4EDvqYrpqSkicoOnGp/M5CgnV99nPj+U4l1rxKo4CyPlytqet2i98ctWbHd xzttANoDwmjs5ih8eR4JEbNg4gWOFenRXWUgGG1F2f3I96AaVVa86kXnihje5WmntpLD NYaz+ea02JpqDrfM9Okc5C/mym/Uh7zj/BlLDQ5QBpwB7DnjjEyqhPwq787hKWte2Cyo EVdeRV4PUV48bxC7NR1DA8ONxzsuDUmsh5rkSFvKIvQ6D6P9acVBBpnXVJ13yUhOKWoD ZDWR6wVe0qkYVSIU3lAU0TmG6eYMpHJbNCkJeVw+KP0/ixIZiefFeAbk4e+QXKg76SwX o7RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3/u4sjnC/34qrxl+MCwopuiBE7XtG8O9XdqS2xxLCBk=; b=xrXHufA9nZtV1Mj4s0fyDO2L+rNn5+R7m4GKTSQ3phtNJNYawRc2/1icvwpjEGM+Dc OVajnqUXqWc2c4sVH1nGp0mHu0TsXuRC7LajG8t5Qm5DFbZjFUQFXDhqtCK0a+ciA/b5 EPf9RJN2wpADWii9EyYZgTra9Yn9LthdxVn1Jq1LexABhkXJot8AsgE9T5V72U7PsMDV z+vGTClzwmL2KMEXbPV1gi/YhZbaAn5ksrqHnM8ldSbNz48QnEAFbt57txUPgnfg0l4o oCcoeG5dwK7QiqvwIOsi+X4CeNWYiwcou+NRLwJCgIBm5yQ4ekVWziutOTdSqe0bgP5w FHBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=eQCGCQio; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o18si1018391pjr.166.2022.02.21.21.24.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:24:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=eQCGCQio; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A7363105AB0; Mon, 21 Feb 2022 20:55:21 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231684AbiBUI4k (ORCPT + 99 others); Mon, 21 Feb 2022 03:56:40 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345688AbiBUIyN (ORCPT ); Mon, 21 Feb 2022 03:54:13 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 536A9237CB for ; Mon, 21 Feb 2022 00:53:05 -0800 (PST) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 9A2DF223F7; Mon, 21 Feb 2022 09:53:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645433583; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3/u4sjnC/34qrxl+MCwopuiBE7XtG8O9XdqS2xxLCBk=; b=eQCGCQio/27yOIq1twcO5+XaAJcqG3xDVMBT+epStxAekqDL1RZtqd7TbzujExXh0+Sh1s uInte14cKkD9q8r4fJ5l3/HUdZDgtk18XD8Cgs+8+KfX0/tX4CORbsWgu5LFeesXlFbdu2 ara0pnmfKJfbofegU/If1tTIybv1Zto= From: Michael Walle To: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , yaliang.wang@windriver.com, Michael Walle Subject: [PATCH v3 30/32] mtd: spi-nor: spansion: rename vendor specific functions and defines Date: Mon, 21 Feb 2022 09:52:34 +0100 Message-Id: <20220221085236.1452024-31-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220221085236.1452024-1-michael@walle.cc> References: <20220221085236.1452024-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Drop the generic spi_nor prefix for all the spansion functions. Signed-off-by: Michael Walle --- drivers/mtd/spi-nor/spansion.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c index 33ebecbcc3c7..b5bc33dab5ed 100644 --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c @@ -309,10 +309,10 @@ static const struct flash_info spansion_nor_parts[] = { }; /** - * spi_nor_clear_sr() - Clear the Status Register. + * spansion_nor_clear_sr() - Clear the Status Register. * @nor: pointer to 'struct spi_nor'. */ -static void spi_nor_clear_sr(struct spi_nor *nor) +static void spansion_nor_clear_sr(struct spi_nor *nor) { int ret; @@ -336,13 +336,13 @@ static void spi_nor_clear_sr(struct spi_nor *nor) } /** - * spi_nor_sr_ready_and_clear() - Query the Status Register to see if the flash - * is ready for new commands and clear it. + * spansion_nor_sr_ready_and_clear() - Query the Status Register to see if the + * flash is ready for new commands and clear it. * @nor: pointer to 'struct spi_nor'. * * Return: 1 if ready, 0 if not ready, -errno on errors. */ -static int spi_nor_sr_ready_and_clear(struct spi_nor *nor) +static int spansion_nor_sr_ready_and_clear(struct spi_nor *nor) { int ret; @@ -356,7 +356,7 @@ static int spi_nor_sr_ready_and_clear(struct spi_nor *nor) else dev_err(nor->dev, "Programming Error occurred\n"); - spi_nor_clear_sr(nor); + spansion_nor_clear_sr(nor); /* * WEL bit remains set to one when an erase or page program @@ -384,7 +384,7 @@ static void spansion_nor_late_init(struct spi_nor *nor) } if (nor->info->mfr_flags & USE_CLSR) - nor->params->ready = spi_nor_sr_ready_and_clear; + nor->params->ready = spansion_nor_sr_ready_and_clear; } static const struct spi_nor_fixups spansion_nor_fixups = { -- 2.30.2