Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3638605pxb; Mon, 21 Feb 2022 02:30:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFwPQuSLUpgZlgSAYX3dWegCVRpAH2jxWaXqS+FJThNK8qTpOU6COCFkJpCpHEyxYY7CaP X-Received: by 2002:a17:903:32d1:b0:14d:3bda:1144 with SMTP id i17-20020a17090332d100b0014d3bda1144mr18287096plr.37.1645439434162; Mon, 21 Feb 2022 02:30:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645439434; cv=none; d=google.com; s=arc-20160816; b=JMR/wrdcjE3by/3JmRiJxu9I7yzK+gmz7Uw7da4XFmGh6sZ5L4u6EFhlRknZ1kzp7b FzK02h/QaZLehDm1Zbyvrz6574PsV5U4CBLLQCWtoyXCpLhRRuhI/BPWxNChAoZOMI2g Cv7x3Z3p5oryM/sCl3biInqFXGbgTdefbqQaZqHPH4m0mAkc1X0oTXhToQKg1r6elX+l fIs2mAIyL0B0U3LgFndMDHEW9CTPvmBhfbVA1f7Odxl8CjKSTmd6jSYwAJjfpv8NldD8 IybJu6ew1pXqRo+OzNfwPzAczOB7sukfZs3y2efrR/iFg8W3f5ls0u+9NzPclqtYo2xO lMaQ== 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=yvCsGo+Zzlp+j51uBwOYnmVN4vdWTxdhsRo6HA993sA=; b=IQ137Qqa3Z+5WeaOmWxYlneRFt9AJ+ivoxgfbUgOM1pBlf9RoYabEtAUWjLLHsyK+Z +M4QzNSOFXaohejC6H6qrsQfmF0n1JPvIFJzzOPY0VrNeeyiItGtgZuM2a5vt71Z3dge bZeLYA32l1LG4u7Dl5TtE1g4yRHJJ5qxHbllRYImAj26L02+x1vU26up2l7JPJl3s8ZG M6SgOWrqgYl90gO0fZAFckxTqCbWkqhc+iyzHrcZuy8FhnXAP99jSamMt3e4rRYfHFuq +6k2KVXrsoksMXXumVWbgXHwYAoE124ji0GT9f3Kfz/g4Pd/F6DEWbhE36wt7sCQ1g/t 2Ceg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=bws+oA4C; 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 h6si31738117plo.224.2022.02.21.02.30.20; Mon, 21 Feb 2022 02:30:34 -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=bws+oA4C; 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 S1346233AbiBUI4Q (ORCPT + 99 others); Mon, 21 Feb 2022 03:56:16 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345897AbiBUIyI (ORCPT ); Mon, 21 Feb 2022 03:54:08 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD68522BEB for ; Mon, 21 Feb 2022 00:53:02 -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 1CEA3223EF; Mon, 21 Feb 2022 09:53:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645433581; 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=yvCsGo+Zzlp+j51uBwOYnmVN4vdWTxdhsRo6HA993sA=; b=bws+oA4CcXFNlfE30VC5WBhsaxnVL9eaKU98ZE7Viogwjq2x5J4Q7t283nJIKUWoGvmpyn iMAb8vw3C6WSLwLf0BDObQTK0VUEtVmfQlBMmpg7JThZaIB4zNLvFnETHAao1P3KL00Ykh t7TtMo0pbFZYfUdJVb9SlbEBu+/mmFU= 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 26/32] mtd: spi-nor: micron-st: rename vendor specific functions and defines Date: Mon, 21 Feb 2022 09:52:30 +0100 Message-Id: <20220221085236.1452024-27-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=-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 micron-st functions. Signed-off-by: Michael Walle --- drivers/mtd/spi-nor/micron-st.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-st.c index f693f8720541..de450495e1ab 100644 --- a/drivers/mtd/spi-nor/micron-st.c +++ b/drivers/mtd/spi-nor/micron-st.c @@ -309,7 +309,7 @@ static int micron_st_nor_set_4byte_addr_mode(struct spi_nor *nor, bool enable) } /** - * spi_nor_read_fsr() - Read the Flag Status Register. + * micron_st_nor_read_fsr() - Read the Flag Status Register. * @nor: pointer to 'struct spi_nor' * @fsr: pointer to a DMA-able buffer where the value of the * Flag Status Register will be written. Should be at least 2 @@ -317,7 +317,7 @@ static int micron_st_nor_set_4byte_addr_mode(struct spi_nor *nor, bool enable) * * Return: 0 on success, -errno otherwise. */ -static int spi_nor_read_fsr(struct spi_nor *nor, u8 *fsr) +static int micron_st_nor_read_fsr(struct spi_nor *nor, u8 *fsr) { int ret; @@ -353,10 +353,10 @@ static int spi_nor_read_fsr(struct spi_nor *nor, u8 *fsr) } /** - * spi_nor_clear_fsr() - Clear the Flag Status Register. + * micron_st_nor_clear_fsr() - Clear the Flag Status Register. * @nor: pointer to 'struct spi_nor'. */ -static void spi_nor_clear_fsr(struct spi_nor *nor) +static void micron_st_nor_clear_fsr(struct spi_nor *nor) { int ret; @@ -380,13 +380,13 @@ static void spi_nor_clear_fsr(struct spi_nor *nor) } /** - * spi_nor_fsr_ready() - Query the Flag Status Register to see if the flash is - * ready for new commands. + * micron_st_nor_fsr_ready() - Query the Flag Status Register to see if the + * flash is ready for new commands. * @nor: pointer to 'struct spi_nor'. * * Return: 1 if ready, 0 if not ready, -errno on errors. */ -static int spi_nor_fsr_ready(struct spi_nor *nor) +static int micron_st_nor_fsr_ready(struct spi_nor *nor) { int sr_ready, ret; @@ -394,7 +394,7 @@ static int spi_nor_fsr_ready(struct spi_nor *nor) if (sr_ready < 0) return sr_ready; - ret = spi_nor_read_fsr(nor, nor->bouncebuf); + ret = micron_st_nor_read_fsr(nor, nor->bouncebuf); if (ret) return ret; @@ -408,7 +408,7 @@ static int spi_nor_fsr_ready(struct spi_nor *nor) dev_err(nor->dev, "Attempted to modify a protected sector.\n"); - spi_nor_clear_fsr(nor); + micron_st_nor_clear_fsr(nor); /* * WEL bit remains set to one when an erase or page program @@ -437,7 +437,7 @@ static void micron_st_nor_default_init(struct spi_nor *nor) static void micron_st_nor_late_init(struct spi_nor *nor) { if (nor->info->mfr_flags & USE_FSR) - nor->params->ready = spi_nor_fsr_ready; + nor->params->ready = micron_st_nor_fsr_ready; } static const struct spi_nor_fixups micron_st_nor_fixups = { -- 2.30.2