Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3705046pxb; Mon, 21 Feb 2022 04:09:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaibhCCUrJdHp2fps9JMbYHrNeuMcBOeSEosgDv51ecEjVvoSL7NBC6jgGSu/S2+JiynQN X-Received: by 2002:aa7:8515:0:b0:4e0:bd8:c238 with SMTP id v21-20020aa78515000000b004e00bd8c238mr19877977pfn.69.1645445391684; Mon, 21 Feb 2022 04:09:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645445391; cv=none; d=google.com; s=arc-20160816; b=hPtkiz7BnxuTTfyoY2pWfA2+tZFMSnLbkJEPUyDsKEWvOEBssLwWCgwDj04kP0lvPF JaCMDTmXpdlqmP31MoYmquk/ClgbSpPplCLRglm2AP2bkZb2zTv5uHtNilAhh4gYbG1w D+eGyDp2kSVXNgH6BGIh7i9WaHx1r1wgsOje1TMl50i0N3VMzZTMbT2LGEhcIkmMa8IB JCHHN6A5A0D19/sGFCgkb8D52Ats5CjjA/iuU4EeooxfApqs65DwFq4NuIqRbaRedIYt 5qlQNwIE9YOBQE0seLGhh44b+tIygzG2Sa/DViDjc5Md22+sBlfzO6EOMOX/YM9cSQWr Jm+g== 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=4TFVPiTLlGkWwn1EsOaghV7Oi+R3fkCvcWUJOwT6tkU=; b=W1ajoopOhLOU8i21xdUOalD5tU/+bOwOdcL4p92AHF7Y2UdCE5ysFojdP6ZGQusK// p5T/FxxcmoTB+LeSqzQ9cAHHzokj6HybskbwqMlsL93xBCdOml4/Uyk0qmAmQ6keL7tV ypNP2oA7PLy08pd0JLD1k9FXwnfvn4hlbXH+YUGYEyPlvAMXGHv4mQdwSA0EexG6uNxq cLOxf5PNMKQpMbAg8esAIFRxgNhSZN7ahWMEm+Sk1ZIUdY/B2zQMY1Lzx4YpoR8EsIXL YrXKfQeXKdSxjCL2YZGhKHzMO2gdbcKatuDYfekitERzWDuoW6C4eL0uP16V8ZI037XS EY0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=VjmYOKWh; 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 b7si9307135pfl.232.2022.02.21.04.09.37; Mon, 21 Feb 2022 04:09:51 -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=VjmYOKWh; 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 S1345899AbiBUIzW (ORCPT + 99 others); Mon, 21 Feb 2022 03:55:22 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:42560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345691AbiBUIxd (ORCPT ); Mon, 21 Feb 2022 03:53:33 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 501BF1038 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 76FFC223EF; 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=1645433575; 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=4TFVPiTLlGkWwn1EsOaghV7Oi+R3fkCvcWUJOwT6tkU=; b=VjmYOKWhLpoy2wjoXDyRtSbUiXIrRePnkYOHLqzoCxmLdsb6S0VB8/aUk3ibE+Gr85ueuY DnV51s9DIi8p8N4DrsQvfaKdMioEEi22b0DK24MoyeHJe2a09ZZYMcjA3qm2LZpRgafe0k SLchXvRFroOdn7m6uEIPrFEcIA7fDXE= 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 14/32] mtd: spi-nor: winbond: unify function names Date: Mon, 21 Feb 2022 09:52:18 +0100 Message-Id: <20220221085236.1452024-15-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=-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/winbond.c | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/mtd/spi-nor/winbond.c b/drivers/mtd/spi-nor/winbond.c index 3d91888882e4..1e8fb571680b 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) }, @@ -131,14 +131,15 @@ static const struct flash_info winbond_parts[] = { }; /** - * winbond_set_4byte_addr_mode() - Set 4-byte address mode for Winbond flashes. + * winbond_nor_set_4byte_addr_mode() - Set 4-byte address mode for Winbond + * flashes. * @nor: pointer to 'struct spi_nor'. * @enable: true to enter the 4-byte address mode, false to exit the 4-byte * address mode. * * 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 +163,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 +171,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