Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1298998pxb; Fri, 18 Feb 2022 05:04:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxiE2qSpRnNrYNKrAYJmSKg3JzyiKqP2dpbdlbjkC4HW7aZvhOwx77vZIPgRg4+vTGDb5iJ X-Received: by 2002:a05:6402:3549:b0:412:b31c:5509 with SMTP id f9-20020a056402354900b00412b31c5509mr5509330edd.224.1645189440930; Fri, 18 Feb 2022 05:04:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645189440; cv=none; d=google.com; s=arc-20160816; b=qYXrmZGDNPxe55qDoTSxQzDGbKdh8is4QzbDcQiWjLfCPTkXk7RwSRSq3boxbnk8/8 Yv7vrba2ylnzC2z9jO/uIHEurecURJJNRqtlNL9CaGz4CdZl0/XQubby+/GKyOGDDsCl kaHPBIE2/aAAuh64LyYj6IFxbHXks5rgvIX8QMvwbIz+ts6Y10+pcE+WaHx3Hsb6JI7g bjynMQYVNUTNW48o1lAQe6WMTjGZBHLJJeHEhb6ecAgW2jNW9yWInajfJjKtq5NGHdac q9mcmHHewDe2apuegiZdTQZnVuuXpREiqGS5eO7nW5z7SzD9Yxp8bsdgaFynEuNC6muf pWMQ== 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=cY/ubQNSRnKpIjV+ZU1mBaI6kn7JLs7xpJYX2NPaQ14=; b=p9aa8QQ1PR1nLx4ww4nU7xI+tzwUZyJnC2yPOOpu26xBYk5nLXrDWhl7tL/j+LFJk7 +bAieKpcdMWjPLcwdBWpm1PR+cka/b553SxYarwUl31PAYnsdE9YhRxB8zaua0ndwvPE UI6CFNJX7ZwVlPkQZqz+0fRq3BowkhYayHFZsCGrO8TfX0JRMlSkqi/Z07Yd9d44DFa9 7tVsvW9WwaUr0Xh96f9Q0eHd/9zlKqt3uC1FmWuOWY2EtXWqIO9M3bRgFwJ2JoR+uHp6 UDnWkK4+bzvRByMJOYrFd+tg/UIkud+GK8psAP4SIHanguMLLIxWlQCtlUz+k9Lak4e9 z3Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=EDMP+B6k; 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 h22si7742480ede.436.2022.02.18.05.03.36; Fri, 18 Feb 2022 05:04:00 -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=EDMP+B6k; 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 S234712AbiBRLhp (ORCPT + 99 others); Fri, 18 Feb 2022 06:37:45 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234562AbiBRLgl (ORCPT ); Fri, 18 Feb 2022 06:36:41 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9BA82B404A for ; Fri, 18 Feb 2022 03:36:23 -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 B1BD92245A; Fri, 18 Feb 2022 12:36:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645184178; 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=cY/ubQNSRnKpIjV+ZU1mBaI6kn7JLs7xpJYX2NPaQ14=; b=EDMP+B6kLIA6o3qzkaAv8TKo21QrGPpWDz/fd+73647aOBaYe50W84cGFesHPplzPFqBTN jO+OqwrhnztlN1qK9Vy7ej+MbnCie5GTnzs/ecsVWd0d6DhUYWRKucQqrr6tfjAhlptlCi GIk24bn+teNrLrc4rpgtDI90DEKQ8k8= 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 15/32] mtd: spi-nor: xilinx: unify function names Date: Fri, 18 Feb 2022 12:35:50 +0100 Message-Id: <20220218113607.1360020-16-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/xilinx.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/spi-nor/xilinx.c b/drivers/mtd/spi-nor/xilinx.c index 580562bc1e45..42ecdc6fc625 100644 --- a/drivers/mtd/spi-nor/xilinx.c +++ b/drivers/mtd/spi-nor/xilinx.c @@ -8,7 +8,7 @@ #include "core.h" -static const struct flash_info xilinx_parts[] = { +static const struct flash_info xilinx_nor_parts[] = { /* Xilinx S3AN Internal Flash */ { "3S50AN", S3AN_INFO(0x1f2200, 64, 264) }, { "3S200AN", S3AN_INFO(0x1f2400, 256, 264) }, @@ -80,18 +80,18 @@ static int xilinx_nor_setup(struct spi_nor *nor, return 0; } -static void xilinx_late_init(struct spi_nor *nor) +static void xilinx_nor_late_init(struct spi_nor *nor) { nor->params->setup = xilinx_nor_setup; } -static const struct spi_nor_fixups xilinx_fixups = { - .late_init = xilinx_late_init, +static const struct spi_nor_fixups xilinx_nor_fixups = { + .late_init = xilinx_nor_late_init, }; const struct spi_nor_manufacturer spi_nor_xilinx = { .name = "xilinx", - .parts = xilinx_parts, - .nparts = ARRAY_SIZE(xilinx_parts), - .fixups = &xilinx_fixups, + .parts = xilinx_nor_parts, + .nparts = ARRAY_SIZE(xilinx_nor_parts), + .fixups = &xilinx_nor_fixups, }; -- 2.30.2