X-Received: by 2002:a17:906:3ec9:b0:6bb:2eb9:84f with SMTP id d9-20020a1709063ec900b006bb2eb9084fmr375000ejj.86.1645632782782; Wed, 23 Feb 2022 08:13:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645632782; cv=none; d=google.com; s=arc-20160816; b=mHDxc6wf16KuPQcK07a57K2o7YBoBjTXMKwZtuQBM++qz95hkTRKFqNOG9qATQ7fpa q6JGhemWQBpGHnupj/pPB13/4vwC+bHgRRGfqGZS9ub/Gl/m3UzveWppUKugNpgiaO1x Q+IFUz2CE+PICdF0NuyAIP1V0m08I0xciSCsqg01b/Ek3dbzzTAQ0jXDa6LRB1IiTH6p p74bwzO4jxdM1r+oTA614FXgqnJcCF6GaGyPfxylGwFK34/Mde234Z12htTESh9c4sny vWatKksYbESHicj8rdHhabnB1Qi0W8IPbXSrgeoC+LptTk/rW4RdZrZG09REr0vs713t axZQ== 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=0AaEL49bVNyArPkAHpyLUsNVUBDXrbZNlfI++WTggmA=; b=U9oueBG0yAidfn/VmnJ3zo1Dq0SfqD5E504YS8N3+bmcHgIGRFgLuk9PObhCIkYuIH Fk2y1oi4Uafq+RO7fpJxTQftV0GB+iPfiAjNlIyNbJkEpK3UkPKtMHAJlbrRUhmK4Xf2 ZA3voIxbeJkT1d9pwck/fhv1aj5oS0pKtz8SlizuL7Mezj+UkiaAINn2XJQQufTkyN6f l7BKJnRVYyVWqCIC18EOdXe34kwnw2oBv7/4PU2wkEJMFY4DOWSAdCT9FQGHQO29GgKe f7GvzYt1re1sGj4RNGATp+dBAdrEFkpqbMj84wRQK+lLX0ILXf/Tq26QjnbqCW8W0+W8 p4Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=at5saJJp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga5si14749973ejc.667.2022.02.23.08.12.39; Wed, 23 Feb 2022 08:13:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=at5saJJp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236395AbiBWNqL (ORCPT + 99 others); Wed, 23 Feb 2022 08:46:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241100AbiBWNox (ORCPT ); Wed, 23 Feb 2022 08:44:53 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3EA1AD113 for ; Wed, 23 Feb 2022 05:44:18 -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 3FB1C22441; Wed, 23 Feb 2022 14:44:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645623857; 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=0AaEL49bVNyArPkAHpyLUsNVUBDXrbZNlfI++WTggmA=; b=at5saJJpY1lu4kbyfwL8XFB8mGT93lYhkB3RHO3DCqqjXMZ0aO6vV7YKfQ7CVTMMehtvjX QHL70/up3DO17LaQ10TLb14HinB26DK5s/n25hdZBINK8Vp68uKV5p9NB+RhqjPKAxqAL0 ETmrUqerrM0LdKVOt/GM8HdnDtysj40= 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 v5 30/32] mtd: spi-nor: spansion: rename vendor specific functions and defines Date: Wed, 23 Feb 2022 14:43:56 +0100 Message-Id: <20220223134358.1914798-31-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220223134358.1914798-1-michael@walle.cc> References: <20220223134358.1914798-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Reviewed-by: Pratyush Yadav Tested-by: Pratyush Yadav # on mt35xu512aba, s28hs512t --- 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 32d3301ce385..f24e546e04a5 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 if there are any errors. + * spansion_nor_sr_ready_and_clear() - Query the Status Register to see if the + * flash is ready for new commands and clear it if there are any errors. * @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