Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3828768pxb; Mon, 21 Feb 2022 06:32:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxF8kM1MNvNsTjJ1ujUH3iVr3kA2GrrO0nDk6CFkvWCawEdKzgGLLVBhp70fVGxTcVDqUHR X-Received: by 2002:a17:90b:3cc:b0:1bc:5552:9ec5 with SMTP id go12-20020a17090b03cc00b001bc55529ec5mr2114600pjb.43.1645453974812; Mon, 21 Feb 2022 06:32:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645453974; cv=none; d=google.com; s=arc-20160816; b=BwDGGRM9wXPvFdapgdWJVbY9jHHMM7e1BGE5vHRCU1u8Crdvw5I0Cb5IU0O2kl01iG nnsrvCW+PXkbN8XcJ+4f3+xTdzKlOafN0WcxXbcH6RC743RB7/wji2uwQqQfw86dhoTC 4WJT6DDuLg0jHWy0g5N5LMk6deyGkR/y5bTsY7CvzLwXTwm4lE6qPR0brHrIm7yiRfjD mN4SOB0u1AVUfR6tKvvh+ioymE3HBb5XEw+Cdhs/XlS8IF0AzSGPUJtCtZhN2dECVxd9 HLRBStDVR5gh04cVBznEtk4qcfZH/JRiTusoWbaFp1hboH2H0yf6zOWd/GNGc21mw6k2 FPow== 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=eOr1V8e1egjKEQO/tpfMSEdK5Q3J9NZ9drx5r7CgO00=; b=JhP9hmrbeIxuRM1fRRLtMrKPSDjSKt9wW6yPNHY0xCnv50EI9TF8GZc0yybQI9jTSO VQ1+gkyAtNeZQooe9nmDP5yIlhtdMDx0IVETkuhxwoWdeKxD8PtisBfpQ5oEs3AxxdAS oVHfOofsgmOUsUnt4630QOlK8DnWpbj8BdVpOEKFf109q5xF8H6iFiX09aaZdfabC2EE oFmSBx3atEGS4SltA0WpRJ2wLQ749jF7jQT1E3wCncfJZVCBFwWy7VAQAfw4ncMx95cu +YMxxPoq8fZ/r0dxTv9XQM4DRhEzdWUCFYNsHpkCi4c7b1Or2mGh/YaRb5VFdeItGa7W MsxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=qrFJrlxA; 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 k1si28271018plk.533.2022.02.21.06.32.39; Mon, 21 Feb 2022 06:32:54 -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=qrFJrlxA; 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 S1357376AbiBUMKD (ORCPT + 99 others); Mon, 21 Feb 2022 07:10:03 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357319AbiBUMIu (ORCPT ); Mon, 21 Feb 2022 07:08:50 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A064205C0 for ; Mon, 21 Feb 2022 04:08:27 -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 952B422455; Mon, 21 Feb 2022 13:08:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645445305; 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=eOr1V8e1egjKEQO/tpfMSEdK5Q3J9NZ9drx5r7CgO00=; b=qrFJrlxAa6+LhzorxQUtqOGEsFWGjqwKOk/ZzsJswIO5uwX2zSks0h1g3auLprwxvpKQmD 9SPuawhxGFDcZIfoDAz1LKlZC/7tdNwEN1QrMvoGKgyT3Wr39cZP9Tx9NdGXt2bd0wTrJx FG+vya4v/quWPSB7jW9fQgqYEI+uXfg= 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 v4 15/32] mtd: spi-nor: xilinx: unify function names Date: Mon, 21 Feb 2022 13:07:52 +0100 Message-Id: <20220221120809.1531502-16-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220221120809.1531502-1-michael@walle.cc> References: <20220221120809.1531502-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/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