Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1293169pxb; Fri, 18 Feb 2022 04:57:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9ouGOCJIQzUXTnNulZjSjhz2M6dohpBMuXRYMvm5rgPvgfY1RT9SkCyPAF9weRBFVSO5K X-Received: by 2002:a17:906:64e:b0:6ce:36ae:7ab5 with SMTP id t14-20020a170906064e00b006ce36ae7ab5mr6472096ejb.192.1645189062214; Fri, 18 Feb 2022 04:57:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645189062; cv=none; d=google.com; s=arc-20160816; b=geQuhEZTfGYKXiuDUPuYW2MH6+KHtiI8KDTrsiPaa16SzSFHUz7oa7qaSp9Qp0XqTb KPGwGYBhr50S9AUSPZz/vMiy4K+gIDGtebV/aQwEa+pC7Hqn+YwF6scxYdn6R4VRQZzg Mpb1oZOU6DEjwIrkb/BZ5cWpfiNZQa6uLkPKCzYwZP7+UzGhP1ufDFL87yDw1tTNtyBg KYbgszytbr/itpEr3e7WatTQdmdcyOXKWcUjdQ7PiKBu7zx345sgHBQEJjNRDZvlaizq s3A250CUBVNAZcmtpP50itIj3SYba+kSl6S77YbeNMMkHwo2pTrp8oYbpxjzsJGP3l9c EqWw== 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=7MTuzFpCvHrYsDEsSy+Lrt3U2XF9QJpNBVrsBXeBWII=; b=V2eZ6wX8HH/bKJRmmectEgFCZe8AJSUX0Xgg5U8ouQPEVHplumg0n+a2Izx9O9jIai 4lyl3C5qgEydOZAiSoJ7Rme7cjpberJ6VkD44ej1KHggx7aIF4jFcHJs8wGbSzAutHXm m4wUVMYs+EOIxQ/vFif4jEz7ug5G2Xj9ECQpHDk3uwFvYogMkC3B5CgCYccAEf7zaXod +sWWmH+hpJNNfblvrfXPFVj51GdHa2jNPohqZKhIyBeoE04CO2sNv3Wmm0A7IENhfl5P KAUS0x0zEEVTftOlyjnODKHMWRFhuZ9S3I8jug4DwNGI5CeJ6U42g3TSHoBbcLE09RE4 lw+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=Ux2ShD0V; 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 ga33si3914340ejc.100.2022.02.18.04.57.19; Fri, 18 Feb 2022 04:57:42 -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=Ux2ShD0V; 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 S234730AbiBRLhT (ORCPT + 99 others); Fri, 18 Feb 2022 06:37:19 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234574AbiBRLgk (ORCPT ); Fri, 18 Feb 2022 06:36:40 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 238D42B1A95 for ; Fri, 18 Feb 2022 03:36:22 -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 2338E22450; Fri, 18 Feb 2022 12:36:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645184177; 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=7MTuzFpCvHrYsDEsSy+Lrt3U2XF9QJpNBVrsBXeBWII=; b=Ux2ShD0Vt0l2V7Ay4nNe3a8VrhpqY8kLv6O9ZhcbGILSDcP9f9EATTG0k/wdXw7h06/HeQ dh9qY2g6nQeDgk7Ekd+92oAglnNgcK2aINo1YnxdTgylKYIoU2Jj1aLhLggaFaCarzYd8Z 89NO7AELgyteQV+5UB64PxzxkLLfT+o= 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 10/32] mtd: spi-nor: macronix: unify function names Date: Fri, 18 Feb 2022 12:35:45 +0100 Message-Id: <20220218113607.1360020-11-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 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_ - _ - _ 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