Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4437633pxb; Mon, 21 Feb 2022 21:36:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxYhinyI79VZC5ew730Q+u3HaatHFDupVj8RyWUoNiFpf+HeJeIuuhK3TUrKafeRXQfVBt X-Received: by 2002:a17:90a:4286:b0:1b8:8ba1:730c with SMTP id p6-20020a17090a428600b001b88ba1730cmr2444009pjg.181.1645508188458; Mon, 21 Feb 2022 21:36:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645508188; cv=none; d=google.com; s=arc-20160816; b=kD/NBbnvPG1/9iADawKN2OcPtNuMSZr21RnvBezP/fvCNXTsJj6z3nNrzOx/pSFE5Y DFLTu/VRGQ+R+h+tYhdZww7KWyvCqHWSN16oXfghYpylDQIYoc2xPp3hb+p05cxFLWrI JjhuKnUJ5J6SWGT5j9iRzLFRhtRZWPcISatEhEZ3FvOt0I2R8kq6WzKKsh5NB2H4wjY/ j9WcMPVeXvg+NG9mjFwdhNlXAWHcObuMVTSxVOgh6nNwNwlPKqxfZX0EsL/S55jscle8 VHP012rvm1RmoiCXze72gZr07JfbdLAip1wjEAUHH7fQ7LMk0NOjLHtNHkBZ4yzIZLNy aAHg== 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=YRjukZL/ruP1xXhgg1cp82+FSWtQZnl/IGnl3MekiW/xGWTncE1HpoJ0UkOC/7th2S fwrJIXV680wKjshDlFrkGE6h+mHRmjnKyuWOx0qAnxdPtoZgy8EVpnO9REptDmTiYIbz CfTmLto4RLnghHn6qsoxRm4C+WHSmvF8/4tk3LbZReDOXljKePTpEDIttXJAL3ogN67d oDuzFh6Twa6BVMIH49wQ8e60fWxz6Ds9m9s7j5rH67kQiFp/bi8Rdp5WHQQ8O3VT95ng RpOjbriPyGc4Kz7JU5LIPf0hraJCN5hPq+EKpJIPBwJeYiVx7bjjdAFZuMKh1yfYEea1 ifrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=pM81OIJT; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g10si516818plo.527.2022.02.21.21.36.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 21:36:28 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=pM81OIJT; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 217E3205EA; Mon, 21 Feb 2022 21:04:07 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346009AbiBUIzX (ORCPT + 99 others); Mon, 21 Feb 2022 03:55:23 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345692AbiBUIxd (ORCPT ); Mon, 21 Feb 2022 03:53:33 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 944871EC67 for ; Mon, 21 Feb 2022 00:52:57 -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 D245E223F0; Mon, 21 Feb 2022 09:52:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645433576; 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=pM81OIJTacIsscjAGjSaKnGoxLfY/wysKcl/TsSolLi7EAdB84o+Vj6lQGJs/ibgIxVLn7 qLosoBwt920oJjvcYgkniNPp9QaVX/rUzr+gVCscOhg12oCUzAvbUbxY4Vc1Iz+MLqiFHy IxN92yfezJWYoL/BksN5S6mDTb7n1q8= 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 15/32] mtd: spi-nor: xilinx: unify function names Date: Mon, 21 Feb 2022 09:52:19 +0100 Message-Id: <20220221085236.1452024-16-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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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