X-Received: by 2002:a17:90b:3a85:b0:1b9:e751:2335 with SMTP id om5-20020a17090b3a8500b001b9e7512335mr12212446pjb.43.1645667667007; Wed, 23 Feb 2022 17:54:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645667667; cv=none; d=google.com; s=arc-20160816; b=RsXd32li1z/AT2jJIc/3kWCxDRsuiYR9jw9YOiEL4nLNQW8fkSoPh1lqdBBsYtzmZr lcEnJwV9tAMi4vpHv4TnklU98vP+uwHE0xtWNwZNADccz+FjDr3tDz9Q46Uk4FdHomfd YF9EqTy9MQcXa8xZYSqUttzu8vwrz7MxipM5wy3aCQuMq3fcLm+8bQKzRQ/TXPMyaNff bbr1l+9b9FbzQsSMZVQftmtRL+C4SdDusqYYNqU7l3igzX5BbpOkVFPVzgMj8Sv3YPUs /2ZA5ptA18sLC7DbwG8o089mVNbiJqFsIEscA61DNw8K7uRoAyk3Rx0WpZ5ukQqS+C4i TMcg== 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=mxAfkU+dAADC9WLJJSEBdqTHjHBT9Wm1HMlwnh6ZASc=; b=ad42FnilkaQKH6tJaDVGvW235qypWjC5o+Pg1+1oKq8iI7xDAczILybqsJeB4wLNxS o22TxOmNr9OghbyX1RvNqbLoCEbbvlL0CoBCvNKm68Bsppfey5yFv3LvPSjwdZ/U4oLo HkGUPCEu7MpS1MIvTOD7a3cuUegIE4ZhjBgCqlkGPQGZXRjw3WIzyuGbOjpGgBrkkj8y AvenpA0bDP4AmAQHdl6sceXa69hnmgHA91xWT6YylTdaSHG0Vm5PzT2ez/CtF7ewTkfe PYZuLOveaF1EM2tQU0gDTzMiJxWx10e+ohV66McDw1W6Xkj4TVJ6GGSSvE/dI6U/LTic W3yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=GLdzsi7o; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y4si1148175pgl.19.2022.02.23.17.54.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 17:54:26 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=GLdzsi7o; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 7BCFB194AAA; Wed, 23 Feb 2022 17:25:45 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241180AbiBWNpO (ORCPT + 99 others); Wed, 23 Feb 2022 08:45:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241036AbiBWNoi (ORCPT ); Wed, 23 Feb 2022 08:44:38 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33BEFAC909 for ; Wed, 23 Feb 2022 05:44:10 -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 86DA52244E; Wed, 23 Feb 2022 14:44:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645623848; 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=mxAfkU+dAADC9WLJJSEBdqTHjHBT9Wm1HMlwnh6ZASc=; b=GLdzsi7o0FckyrOA9byawxQwLSaCGSp0C/EOTYoWQB+k1mMFy6gQFVbZjV3vynRb05wTyR 1h8Ma0YT0qlL0xPQ9ZPUkM4BYBzxAoj0g6GigkMo4mjGkc+Cs8/GnLXsHYQSiVNutTW4iV 3hBsCMG+E8grCV7s/12HNINeDHMaYcw= 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 10/32] mtd: spi-nor: macronix: unify function names Date: Wed, 23 Feb 2022 14:43:36 +0100 Message-Id: <20220223134358.1914798-11-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=-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 To avoid name clashes unify all the function and static object names and use one of the following prefixes which should be sufficiently unique: - _nor_ - _nor_ - _ There are no functional changes. Signed-off-by: Michael Walle Acked-by: Pratyush Yadav --- drivers/mtd/spi-nor/macronix.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 97dba1ae7fb1..d81a4cb2812b 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -32,7 +32,7 @@ static const struct spi_nor_fixups mx25l25635_fixups = { .post_bfpt = mx25l25635_post_bfpt_fixups, }; -static const struct flash_info macronix_parts[] = { +static const struct flash_info macronix_nor_parts[] = { /* Macronix */ { "mx25l512e", INFO(0xc22010, 0, 64 * 1024, 1) NO_SFDP_FLAGS(SECT_4K) }, @@ -102,19 +102,19 @@ static const struct flash_info macronix_parts[] = { FIXUP_FLAGS(SPI_NOR_4B_OPCODES) }, }; -static void macronix_default_init(struct spi_nor *nor) +static void macronix_nor_default_init(struct spi_nor *nor) { nor->params->quad_enable = spi_nor_sr1_bit6_quad_enable; nor->params->set_4byte_addr_mode = spi_nor_set_4byte_addr_mode; } -static const struct spi_nor_fixups macronix_fixups = { - .default_init = macronix_default_init, +static const struct spi_nor_fixups macronix_nor_fixups = { + .default_init = macronix_nor_default_init, }; const struct spi_nor_manufacturer spi_nor_macronix = { .name = "macronix", - .parts = macronix_parts, - .nparts = ARRAY_SIZE(macronix_parts), - .fixups = ¯onix_fixups, + .parts = macronix_nor_parts, + .nparts = ARRAY_SIZE(macronix_nor_parts), + .fixups = ¯onix_nor_fixups, }; -- 2.30.2