Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1238542pxb; Fri, 18 Feb 2022 03:44:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkOQX4lHLdMAzNA8IspJYqt+pviSnvGQZrX8sdRbBeHx0SAeVNALWVlWI6aRExgc4FVrUe X-Received: by 2002:a17:90a:1b04:b0:1b9:92e1:6264 with SMTP id q4-20020a17090a1b0400b001b992e16264mr8011028pjq.116.1645184662897; Fri, 18 Feb 2022 03:44:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645184662; cv=none; d=google.com; s=arc-20160816; b=JAj6Ndq9f7HgC3tGRFQb0Ep+rTKHEx/2yRUbfUM0yWo1FVvMgmsI+vQVLi08w9epxi eteCwFZ1CefzriUmA4ag7k9TatmRA2LCMQnSvTfgx7h2FyxSayADlw3AaWN7RCWG0VPF 9vzt8yAf6bdS2Zx93HITX2K+SuARUVeAOlvmmDS+Np/XKa7BCB4AQcgIUVTZ7r5Jiv1Z f4f+hJ/Mk14ciDLzrxbNh8MtaclIGOSJPfGztoy6b395okk38lqsFrQxvqpawn/cCjNO vVJjbPDjYuJiUdoQiD8vYqQ9jTb9VPpTl3O3QefiF1n6KH0k6tzsPus4/ElGcT4wt42t +xSA== 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=e5GfVMbBGWmdvXhXIoW+ggWd1G9vkp3A24ZAKD/FfOY=; b=eIbBkqP3nZsIGsIEUUISvZktR7OoywFY30FsZKFnqlPhRyUDQvkhHCv3GZWhCm79ex ntRebTHURp1blmlciuZy6VpC74iBObqr7CdPLqztjYOVTz9a4w60R//EnhTVXbw33a+l mVQ582Dn3acGJ/78X3+IfQZQvW60v0ofsozRIbPM80PNAR57WTYfXA/Ph1MN9LpDKkB8 2KXk5tmUs/ZN8zbWJJS53j8CrfPRS3Ln7HN0B8/hVeooTtlbPNHWutSc12vfcb/ERZ53 dpMZfIzwS15a4E2NGmJS8MZHXxrYg1lYhUbL+N2xwWdmQcIpigx3npPWi/CehIlfTmQv 7PyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=STLkdrZw; 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 c24si3146266pls.324.2022.02.18.03.44.08; Fri, 18 Feb 2022 03:44:22 -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=STLkdrZw; 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 S234697AbiBRLha (ORCPT + 99 others); Fri, 18 Feb 2022 06:37:30 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234563AbiBRLgk (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 72AAC2B0B09 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 CDF4022453; 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=e5GfVMbBGWmdvXhXIoW+ggWd1G9vkp3A24ZAKD/FfOY=; b=STLkdrZwqV4ycL94P2bDWqeV/e8uQfyZ/vlcjqTYXR3mMh1TR+KzMzx2E7ydoBjWrJFDLU r73PV/KrpV6uyzPeWQHM61jFECRCYeLhX2GxNJHrJhm+BMbLXpKL9KTII5dcNhJ1S9WNI8 K413aWqOGGIjuWAn9/tsi7iRExHEWd0= 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 12/32] mtd: spi-nor: spansion: unify function names Date: Fri, 18 Feb 2022 12:35:47 +0100 Message-Id: <20220218113607.1360020-13-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/spansion.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/mtd/spi-nor/spansion.c b/drivers/mtd/spi-nor/spansion.c index 534196b1d3e7..c57ee085e1ba 100644 --- a/drivers/mtd/spi-nor/spansion.c +++ b/drivers/mtd/spi-nor/spansion.c @@ -20,7 +20,7 @@ #define SPINOR_OP_CYPRESS_RD_FAST 0xee /** - * spi_nor_cypress_octal_dtr_enable() - Enable octal DTR on Cypress flashes. + * cypress_nor_octal_dtr_enable() - Enable octal DTR on Cypress flashes. * @nor: pointer to a 'struct spi_nor' * @enable: whether to enable or disable Octal DTR * @@ -29,7 +29,7 @@ * * Return: 0 on success, -errno otherwise. */ -static int spi_nor_cypress_octal_dtr_enable(struct spi_nor *nor, bool enable) +static int cypress_nor_octal_dtr_enable(struct spi_nor *nor, bool enable) { struct spi_mem_op op; u8 *buf = nor->bouncebuf; @@ -116,7 +116,7 @@ static int spi_nor_cypress_octal_dtr_enable(struct spi_nor *nor, bool enable) static void s28hs512t_default_init(struct spi_nor *nor) { - nor->params->octal_dtr_enable = spi_nor_cypress_octal_dtr_enable; + nor->params->octal_dtr_enable = cypress_nor_octal_dtr_enable; nor->params->writesize = 16; } @@ -202,7 +202,7 @@ static const struct spi_nor_fixups s25fs_s_fixups = { .post_bfpt = s25fs_s_post_bfpt_fixups, }; -static const struct flash_info spansion_parts[] = { +static const struct flash_info spansion_nor_parts[] = { /* Spansion/Cypress -- single (large) sector size only, at least * for the chips listed here (without boot sectors). */ @@ -294,7 +294,7 @@ static const struct flash_info spansion_parts[] = { }, }; -static void spansion_late_init(struct spi_nor *nor) +static void spansion_nor_late_init(struct spi_nor *nor) { if (nor->params->size <= SZ_16M) return; @@ -305,13 +305,13 @@ static void spansion_late_init(struct spi_nor *nor) nor->mtd.erasesize = nor->info->sector_size; } -static const struct spi_nor_fixups spansion_fixups = { - .late_init = spansion_late_init, +static const struct spi_nor_fixups spansion_nor_fixups = { + .late_init = spansion_nor_late_init, }; const struct spi_nor_manufacturer spi_nor_spansion = { .name = "spansion", - .parts = spansion_parts, - .nparts = ARRAY_SIZE(spansion_parts), - .fixups = &spansion_fixups, + .parts = spansion_nor_parts, + .nparts = ARRAY_SIZE(spansion_nor_parts), + .fixups = &spansion_nor_fixups, }; -- 2.30.2