Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1328777pxb; Fri, 18 Feb 2022 05:42:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxF4I7L4M/YiubOiyO2IvxKqFK6EsSLXbyLnui+hOA1kx4n3VDliSHa6/VRB3Yn6C5q2kx X-Received: by 2002:a17:906:ce30:b0:6cf:1b03:e696 with SMTP id sd16-20020a170906ce3000b006cf1b03e696mr6507950ejb.505.1645191756217; Fri, 18 Feb 2022 05:42:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645191756; cv=none; d=google.com; s=arc-20160816; b=eml9mW9q/mHHTSoTNoJZutnbhvZpv5TwSo1MnvJDixe9aztfMG/iZHaZ+3JGwm6htj 2kSqNzdtsBqJ0yUZUpWAHnrtA4Pb0b8fCH/f7AND444180EEZf232OlDbMXp2IPq0GHA OXGXHOqolJkivrdHM0JFxhM/MbjBbmATjpU42ToWWyzaM41FAfB5SUW27l1//4usmukX qsyWc1OVcprNLHNSD191K4IxE6G8jlMQVpDlhcWiYWac0os/ed/cOKENIEC8FGVDY31X m2tfE6FqKRxAnxVcrS0sGr+q/scwkAAOWTRYRiVeI55lnjL0+cDVjmYVOk9lHGureJOr 00aQ== 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=Wwdz4ZqLZzwMbbOuFl8qfVobOJC0DCzhISRyc0ex6gI=; b=Nf38Ol+otL57DN5dtON5mvkgzdtuTLXtp8wGitYfGwr+E2SE1lKjTtXJR2Rr/MeToF lYV7HN+USF0LPfGiSm4eo/2NjPB7W0Z0xCUp6IpE02dO72V7gdeesJpQYQPz5ee/yN4B LvprkF6txuqFHCEQGYM9w02q4ntr2KrDrSK5eVDdoFcqoMPdi7QxLqabchTZVo87BxtQ DmBSizjOucQpKupbBTo2dq2YEMB0H7Z9Z6TD5Rno+akJcRgaeOxb30hokXyrYnvNb1hp x/iudZbL49Na7GUpKwi0e+uXBQUd932yXCPWcpj+w0/MbSA1j8E3W7sDAGN48BTlR9Li hjRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b="E/qT1sWA"; 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 g9si7348084edz.41.2022.02.18.05.42.12; Fri, 18 Feb 2022 05:42:36 -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="E/qT1sWA"; 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 S234749AbiBRLhY (ORCPT + 99 others); Fri, 18 Feb 2022 06:37:24 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234582AbiBRLgk (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 72CD12B3541 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 69D7022456; 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=Wwdz4ZqLZzwMbbOuFl8qfVobOJC0DCzhISRyc0ex6gI=; b=E/qT1sWAIUfmRcLrru+mcYRGgbpFE8Fj4IuLQtL/nx9rqQPFM+RWKrVaJWR3xEieEqVMd6 9LAL8O+hC8gtcpTIGPikxo7ygxxQUt+AoIe5MA4o7Y1S/LF+UU7moEB7xvzQURVpsOwiMd eciY9/atDQlkEFLrNdd9kl5Z1B/bICo= 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 14/32] mtd: spi-nor: winbond: unify function names Date: Fri, 18 Feb 2022 12:35:49 +0100 Message-Id: <20220218113607.1360020-15-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/winbond.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index 3d91888882e4..8314266c2fec 100644 --- a/drivers/mtd/spi-nor/winbond.c +++ b/drivers/mtd/spi-nor/winbond.c @@ -32,7 +32,7 @@ static const struct spi_nor_fixups w25q256_fixups = { .post_bfpt = w25q256_post_bfpt_fixups, }; -static const struct flash_info winbond_parts[] = { +static const struct flash_info winbond_nor_parts[] = { /* Winbond -- w25x "blocks" are 64K, "sectors" are 4KiB */ { "w25x05", INFO(0xef3010, 0, 64 * 1024, 1) NO_SFDP_FLAGS(SECT_4K) }, @@ -138,7 +138,7 @@ static const struct flash_info winbond_parts[] = { * * Return: 0 on success, -errno otherwise. */ -static int winbond_set_4byte_addr_mode(struct spi_nor *nor, bool enable) +static int winbond_nor_set_4byte_addr_mode(struct spi_nor *nor, bool enable) { int ret; @@ -162,7 +162,7 @@ static int winbond_set_4byte_addr_mode(struct spi_nor *nor, bool enable) return spi_nor_write_disable(nor); } -static const struct spi_nor_otp_ops winbond_otp_ops = { +static const struct spi_nor_otp_ops winbond_nor_otp_ops = { .read = spi_nor_otp_read_secr, .write = spi_nor_otp_write_secr, .erase = spi_nor_otp_erase_secr, @@ -170,25 +170,25 @@ static const struct spi_nor_otp_ops winbond_otp_ops = { .is_locked = spi_nor_otp_is_locked_sr2, }; -static void winbond_default_init(struct spi_nor *nor) +static void winbond_nor_default_init(struct spi_nor *nor) { - nor->params->set_4byte_addr_mode = winbond_set_4byte_addr_mode; + nor->params->set_4byte_addr_mode = winbond_nor_set_4byte_addr_mode; } -static void winbond_late_init(struct spi_nor *nor) +static void winbond_nor_late_init(struct spi_nor *nor) { if (nor->params->otp.org->n_regions) - nor->params->otp.ops = &winbond_otp_ops; + nor->params->otp.ops = &winbond_nor_otp_ops; } -static const struct spi_nor_fixups winbond_fixups = { - .default_init = winbond_default_init, - .late_init = winbond_late_init, +static const struct spi_nor_fixups winbond_nor_fixups = { + .default_init = winbond_nor_default_init, + .late_init = winbond_nor_late_init, }; const struct spi_nor_manufacturer spi_nor_winbond = { .name = "winbond", - .parts = winbond_parts, - .nparts = ARRAY_SIZE(winbond_parts), - .fixups = &winbond_fixups, + .parts = winbond_nor_parts, + .nparts = ARRAY_SIZE(winbond_nor_parts), + .fixups = &winbond_nor_fixups, }; -- 2.30.2