X-Received: by 2002:a17:90b:3d02:b0:1bc:85fa:e24 with SMTP id pt2-20020a17090b3d0200b001bc85fa0e24mr6576680pjb.239.1645630576158; Wed, 23 Feb 2022 07:36:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645630576; cv=none; d=google.com; s=arc-20160816; b=pqmsqRVBIY2UTdjQzm2AMrkVRLCWRAXO5TTnNmHRpFXSb36q3pyMMMJRsSKqeNK+OK cjZlv5xN3mIAMwI0GTc3KY+i8Sc45XeEjJphEb652FgPhgZpmd+artDiynPOmJMH8frQ ipRkix8DYP7deaLZ87lvVKTh5oL/wfcXrEs6AR6/vTMrRC84VhLYROV8bWDROH2tlln/ +7K3ec3MsLM/KQqmFUXm9bCVejk969s+BRL4oE2hLhCK43Adz+WlXvYhjptB+e8XmB+A GC7fxjatyH2GBkGXtk1OAY142w8NZgclnrUYliJeJgmoj6QHQXo5BWQaKtWj5DdcPiKI r5zA== 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=NbHvy8hevO/uqaI9Zie2Nd+ZG6Y7RWXmci9VDa4GFEA=; b=vTrShTQymFW3BPvxN1KXKX1oiOM35oWJ/nPPPyWyIaAn+aQiky+uFASpAYnhpYqZe7 6JuLhWrRcc74O2FELMcMRNpwsUydTU8/uNBAPjvK2JcR/p49jefvnGl+mLSTn4uVaF1P g0OulHtDmZAT2fBtbVL0Qyn3oQrkdTs8fHkyc3J71uy7ukj4BwU7DSijrA3XG+i2yBh1 vK4nbCYaxPeTaCa3XqbTOORsTjBIgEtkrc8rMwLpuiweNIjaHEJlIAj6zFrSidwCAPjI /EyAM4JJIMiYzYHjSZcsvbafaAKUEWKVzs7RUWgehzqel2BjeK+yJWSPXqAsVYT9mI8W gA8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=dudIoW6k; 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 a11si22480519pgi.308.2022.02.23.07.35.59; Wed, 23 Feb 2022 07:36:16 -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=dudIoW6k; 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 S241202AbiBWNpW (ORCPT + 99 others); Wed, 23 Feb 2022 08:45:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241067AbiBWNos (ORCPT ); Wed, 23 Feb 2022 08:44:48 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6868AC914 for ; Wed, 23 Feb 2022 05:44:12 -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 BF3872245A; Wed, 23 Feb 2022 14:44:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645623850; 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=NbHvy8hevO/uqaI9Zie2Nd+ZG6Y7RWXmci9VDa4GFEA=; b=dudIoW6kLaY+U43BXBdxaZk9D42nGi2Yi0aTL8+vl+RxymdfTiFPiORJdPyYZ77qZDMo/L mgxPoEIHVldZ3KxkJ/KK9JXz2ewR3IYx8N5rJdeiJ55fE1FcGKc1Aue0bMKqZevqGPjtR1 iug1JNSRCJafYUanWqipRhcWtY/qeqc= 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 15/32] mtd: spi-nor: xilinx: unify function names Date: Wed, 23 Feb 2022 14:43:41 +0100 Message-Id: <20220223134358.1914798-16-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=-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 Acked-by: Pratyush Yadav --- drivers/mtd/spi-nor/xilinx.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/mtd/spi-nor/xilinx.c b/drivers/mtd/spi-nor/xilinx.c index 580562bc1e45..07dd11788df5 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) }, @@ -26,7 +26,7 @@ static const struct flash_info xilinx_parts[] = { * Addr can safely be unsigned int, the biggest S3AN device is smaller than * 4 MiB. */ -static u32 s3an_convert_addr(struct spi_nor *nor, u32 addr) +static u32 s3an_nor_convert_addr(struct spi_nor *nor, u32 addr) { u32 page_size = nor->params->page_size; u32 offset, page; @@ -73,25 +73,25 @@ static int xilinx_nor_setup(struct spi_nor *nor, nor->mtd.erasesize = 8 * page_size; } else { /* Flash in Default addressing mode */ - nor->params->convert_addr = s3an_convert_addr; + nor->params->convert_addr = s3an_nor_convert_addr; nor->mtd.erasesize = nor->info->sector_size; } 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