Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1264221pxb; Fri, 18 Feb 2022 04:17:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHsu132p8ssZpLXzOV4ny/LajWWrxYNFSYucBVHJ9tTvrqECNEuBbNAjCCZ9ogmj4uqWFn X-Received: by 2002:a17:906:1101:b0:6cd:8142:4d4f with SMTP id h1-20020a170906110100b006cd81424d4fmr6138962eja.749.1645186632778; Fri, 18 Feb 2022 04:17:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645186632; cv=none; d=google.com; s=arc-20160816; b=jq+CfF+sCp4hv1EZN/gIeYFujdnsVkrr85A/l8OUeT8UDcfs0KG4v6Hz1x72SxMz8r KfkjVX72SKSuimIiNt2SdIrReBNws9DHNXtdY84RuD/nMlpdLufS/VFh03qXCnaUVOqQ y5n0J3JwFh/XjcKa2NzCjh2Re6LftN3XpdVBXYX5AcJnOKndR+7T/amWoaeYGb8mzf2P HhXohgNtz3cA1jmGhsBNEd553s2xrt/2sle0q/UhP3cdKCo2iytWl2vI7rIvEpmgAyi1 cb4CD+V9jYq4w8YpX0OQPwvrPDj0URouN0wgX3xnP1g6MYoa1tNSrztOIgIhoL6DX97r THOQ== 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=xdcZIpvWBK1SBtBZMLbCaAdxmBv2TOoluOo5rcRL+5U=; b=M7QbZnKC3gJKkJ96yX2jSVggwdOhOoWpVtELnvQ/sWgrYF6rG2ThZBQS1CRtW672Vs JXxpqQtuTOyu3XyeknjaVLbO1ijHvxqZ7FjgbuM+CB/s28p8oqnnHKUm9rASDbfgkrDo bDLwZlWIFFXOk4ojZbzcIXbN1307CY00VbhZjTRD4yqt824H0FXE+K6VG1rmKjn+WuaF nFVeJvNVWmaqp8c0yxqExUz4D+pbOWKThKYyL2oU8WdlkpbUFFGfLzYK0zOh7d9IjgJl YFQR8W9l7L1XkYeDsAdP5yqy4HNZwxHQZVIdo3rx4qpgf+TeC4IhLchucOGeoY+eiOuy 6ZlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=FO8FboQq; 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 s21si5612816edq.320.2022.02.18.04.16.42; Fri, 18 Feb 2022 04:17:12 -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=FO8FboQq; 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 S234648AbiBRLik (ORCPT + 99 others); Fri, 18 Feb 2022 06:38:40 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234618AbiBRLgq (ORCPT ); Fri, 18 Feb 2022 06:36:46 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67BF02B3541 for ; Fri, 18 Feb 2022 03:36:26 -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 C7977223F6; Fri, 18 Feb 2022 12:36:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645184183; 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=xdcZIpvWBK1SBtBZMLbCaAdxmBv2TOoluOo5rcRL+5U=; b=FO8FboQqslYP8X3SyHJNWUYRaDNirmrkkFSgU7B5kIwUmqb8/dXGL/yKrCrYb6a8X6WVwm Q6u0I/hUOXPqtf8A+pfu1iFLFOIXy3YresEGkpL7nibp5Mwpxiq+hUUozwebgmSP47xADV J3/SAiyyA3DU0lN+E37CH/NrYBKkqvw= 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 v2 30/32] mtd: spi-nor: spansion: rename vendor specific functions and defines Date: Fri, 18 Feb 2022 12:36:05 +0100 Message-Id: <20220218113607.1360020-31-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220218113607.1360020-1-michael@walle.cc> References: <20220218113607.1360020-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 --- 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 061357790dde..ea695db5a4c4 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