Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3631694pxb; Mon, 21 Feb 2022 02:18:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8jb+0gngR4+4TMfsztVlpeAfchMJW0+82HgWas2jyAqWBtM7uDh/wZXt2ilUhc0DsubnJ X-Received: by 2002:a05:6a00:10c8:b0:4e1:7e17:9ca0 with SMTP id d8-20020a056a0010c800b004e17e179ca0mr19406620pfu.72.1645438736032; Mon, 21 Feb 2022 02:18:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645438736; cv=none; d=google.com; s=arc-20160816; b=h/p1Cyj3cc/cnreZgQymHV8fX5dgxo6iq9xYP9KyZA7Nz3HzY6vI1ZO1Lt3Lp626Ow GXRc51tfymtDstsRPPh+ryhEM5DpVf8PPzKsV+bIy/kFXVKLhcod8HPSSijsfVreYGXA DUSlSFjDmENA/ndFA9UWoE6EM6MsQfyLm56GpFY7V7KnLXeJScV39PJmN2kOH63rkSMZ ASZE6Plttcb0QECOs4PyiwGi+VB2Ryh12wves+2Iz7XOd9zmNbSfcK7EdIkT5PPA+HoL mVifAJvnVg94z7CVGyfgDXYWlmHPfAd3p46UUv7AtWE8n8EeNCnzXOgdV8Co0j9EI7tv PC4g== 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=WD1vGyp4iR05geI+YfJuk9fStbZhOUnh6WycbPwBqbQ=; b=wCbHof3BAw3+sXLl3nM6T8icUm9L/5BIqzc+gsqMHBQ34sToXteXXr/fyYNoUk+3Se kg4DGcX9IhxiuY9rSpTKzSsyUwg9F6gweqbAegX2Lnc0vGqVsUrryhI16GA6W4tGBPy+ thsDUu10MRxG0C/htNW99VB8KGB8VvAbN3FwsFSePCbgdLte3a7zVVYpin3DoYAszwUl BxpflX9NMMIqOxS2LaMMrsTzESLaD+f4ZqUGwsaKVHH7Y+fb22v/sPXheJXinCxxXqdG rEXuadOg9ebtQEC/SLVnmogTAKnFmIxOQCQYSQtySrXgyKpCrc4zKo4cVw3/1QTOzBs2 /+Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="EBq/FLVP"; 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 w185si5111029pgb.169.2022.02.21.02.18.42; Mon, 21 Feb 2022 02:18:56 -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="EBq/FLVP"; 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 S1346001AbiBUIzC (ORCPT + 99 others); Mon, 21 Feb 2022 03:55:02 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345674AbiBUIxX (ORCPT ); Mon, 21 Feb 2022 03:53:23 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 702BC1A818 for ; Mon, 21 Feb 2022 00:52:54 -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 C0BF022441; Mon, 21 Feb 2022 09:52:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645433572; 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=WD1vGyp4iR05geI+YfJuk9fStbZhOUnh6WycbPwBqbQ=; b=EBq/FLVPOYcA61uvlGrLhbJP4r/iWfE61xZGg8JL1+zEsPLrgYmGZ4s4psaEqMyjldsyWb ZbgKQkPvh7fVlnOGdpS57EWzEEI3405kXKGvqe4UVZPgqQajO4BSNPA1PZbuTVuCnRGnJC mlZ5R+HmCUsfv+M14hIw0hPlDvIfCdI= 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 10/32] mtd: spi-nor: macronix: unify function names Date: Mon, 21 Feb 2022 09:52:14 +0100 Message-Id: <20220221085236.1452024-11-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 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 --- 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