Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1282879pxb; Fri, 18 Feb 2022 04:42:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeJU6Mp6Hu+N25IwBcC9avpwWVotu3OsD9AophrtIUxogEzGGGV7Ayk5To+RNA69OW03OM X-Received: by 2002:a63:cf:0:b0:367:9570:51e1 with SMTP id 198-20020a6300cf000000b00367957051e1mr6332184pga.57.1645188145287; Fri, 18 Feb 2022 04:42:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645188145; cv=none; d=google.com; s=arc-20160816; b=ToUN0uZxn9AJCCIP6RTDB34NMZleAiL0CAOzJwXuL5zzMqJkfSLv5OgYB/d00GnHsf IKa7YogO9RX+1oi1qrg6L6IxOzwlMSsClvZ/N7HU3ky2BSsychRaUVPKUPKRkFcytWxJ eaRRlRciV8A/h9xGvbj9FKEd7gQG033bztWvdh80kJfALz431ko0wo6YDIjDKsibI2fD on6OCf29H7xjWlI55HAVdYdvKkdgFKL8yE0Jj+PWvyhMvtROC1pkfVgOMt6r6c1wGjTZ LUD83N7FBKcV2QB5Fr7JWEZn6vu5iByHbYtEr+MrsTJ+WQOK/m0MJw4VORTIw6B8UvN2 C+dA== 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=usr8xYhL0OkkvyVpz03FFLuCa1SjXG6k7g15Vf3dWH4=; b=KLZu4yJoYvZVI27UoOAA3ThGuW1HGP3/FZfCbY3nchrxpK/QfQJmRGzPK0VuEo+u9F VNDBA8JL4uCzXwrNVLBl5VE32xYYa6Nx/5LsIGX3srzRFRIPovnOdw6y8WsD93BUoMTG w5okYlOgKet/vMMPCfzwKDXGf+QS3SeLqDytjmQivSskgtF03Qs39sUBk1VNNt193XjA H9KBiA1lqn/Wg0nL4HvqBBvbJrLLWjO8RLWSxvevSo5Pu4lM9WSwYNdPEXCGX3A4p+wp HmVpMGM4R6+0ecBHNeRaLz3iy+aGbugiUdvigbg0hk8tIzcne0vVHb7mSXrUydYlrm7R 2IhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=XTYzoJHB; 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 m3si19156370plm.283.2022.02.18.04.42.10; Fri, 18 Feb 2022 04:42:25 -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=XTYzoJHB; 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 S234682AbiBRLhJ (ORCPT + 99 others); Fri, 18 Feb 2022 06:37:09 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234573AbiBRLgk (ORCPT ); Fri, 18 Feb 2022 06:36:40 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 236072B1A82 for ; Fri, 18 Feb 2022 03:36:21 -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 DFFF62244F; Fri, 18 Feb 2022 12:36:16 +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=usr8xYhL0OkkvyVpz03FFLuCa1SjXG6k7g15Vf3dWH4=; b=XTYzoJHBLBXKEqd2f9usCrt/CVFuMS+TmnVSE36vh1EtEs27NDKzWxrwleBwHPoDiWCV8j 4PHO0kk3jwR/lQVF3TW76g8aKAkuerejObuC7oH8SsEmNeZvVi2viHEImeAm3zR+uieCwq t7F/C+zApEMUwd3ywTuNZEd1LEkCrJ0= 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 09/32] mtd: spi-nor: issi: unify function names Date: Fri, 18 Feb 2022 12:35:44 +0100 Message-Id: <20220218113607.1360020-10-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/issi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/mtd/spi-nor/issi.c b/drivers/mtd/spi-nor/issi.c index 23629b919ade..c012bc2486e1 100644 --- a/drivers/mtd/spi-nor/issi.c +++ b/drivers/mtd/spi-nor/issi.c @@ -29,7 +29,7 @@ static const struct spi_nor_fixups is25lp256_fixups = { .post_bfpt = is25lp256_post_bfpt_fixups, }; -static const struct flash_info issi_parts[] = { +static const struct flash_info issi_nor_parts[] = { /* ISSI */ { "is25cd512", INFO(0x7f9d20, 0, 32 * 1024, 2) NO_SFDP_FLAGS(SECT_4K) }, @@ -69,18 +69,18 @@ static const struct flash_info issi_parts[] = { NO_SFDP_FLAGS(SECT_4K) }, }; -static void issi_default_init(struct spi_nor *nor) +static void issi_nor_default_init(struct spi_nor *nor) { nor->params->quad_enable = spi_nor_sr1_bit6_quad_enable; } static const struct spi_nor_fixups issi_fixups = { - .default_init = issi_default_init, + .default_init = issi_nor_default_init, }; const struct spi_nor_manufacturer spi_nor_issi = { .name = "issi", - .parts = issi_parts, - .nparts = ARRAY_SIZE(issi_parts), + .parts = issi_nor_parts, + .nparts = ARRAY_SIZE(issi_nor_parts), .fixups = &issi_fixups, }; -- 2.30.2