Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp272394pxb; Tue, 12 Apr 2022 01:25:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQV9xqvjmN2Ll39HRYEcW/0awbb4QlZAFEbYWIeuQbQeK9TJRKQlgUyQR/RlIEPb9r+jsa X-Received: by 2002:a63:5b04:0:b0:39d:6f6c:2c5d with SMTP id p4-20020a635b04000000b0039d6f6c2c5dmr4985210pgb.189.1649751925947; Tue, 12 Apr 2022 01:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649751925; cv=none; d=google.com; s=arc-20160816; b=BEVcNuB4fuV8MTeXfwhhE+gycYdyge0fFzR6hGx9v2nxdlL0q6ksEWHYMO4I40FKyS jOra66zNU4F71GZ7BqZstuw/rv4mAnrcXraHfeZb4fOsVQ1p2A65LAX8n6utGVcu5sPa KtnrlHJ1LfxkrZnpupcPwFfKpblXA8ROktyaxwwiiDmuuRmP6YtTfzOTUAllkV/74qQx G1Z6wI1yjuwwgNfMs0FWr3oZzydeKL+0K/q0Sa+keiH15CTpeB23F+M/HmSmtzWnckUt c1cp7XZU8fGiFDVwmPLRQc7UGOKH9UV3A0V1TPXy587DleBHikJl2UAxU982ALKIIcxg 6FZQ== 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=ROIpYwtUtDTlqjan3OfE3Q4KoDYUV0Ln+kZ+Ic483is=; b=eOWDhvGPufBtrnjtSBwo2JMvlUNrOR1j3dgqYWaXHEbzW3osPRVP6OkydECRMpvs4o frEF+XiUQiYG0A190HOlX1kpHt3WOoOjmzf0nAy60aCoymlHU3hubb4d4nNGy5eyMbBj Bz3EttgnzhnGGUt+e7PAhhVWResMJnJ94GuG+iVDksCP5a0Qlf2IHg1CBz2SEI8Gv3JA r6NIaOztsREve3V63iTYG5nPSR5LrsqkdpvBtyiYuzEvCB3jotiU/p3qmzN0tNLEPb2J dpgQsP6YSDpsNic6k6iby/UFFPi2DVuOHeQSDAbXEcMKOhqVvNXoG7tZB6l/2nfhfAJn IXsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b="Gsax/w1S"; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a654003000000b003822b0c2142si2011049pgp.279.2022.04.12.01.25.12; Tue, 12 Apr 2022 01:25:25 -0700 (PDT) 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=fail header.i=@microchip.com header.s=mchp header.b="Gsax/w1S"; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344208AbiDKJNA (ORCPT + 99 others); Mon, 11 Apr 2022 05:13:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344185AbiDKJMy (ORCPT ); Mon, 11 Apr 2022 05:12:54 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B630BC5 for ; Mon, 11 Apr 2022 02:10:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1649668241; x=1681204241; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=idY7s0WCRZPb+aPMzGwgPQXPNOVLICQyDJA9JTrEoe0=; b=Gsax/w1Sq5qeU6m8T5O5AfLmzYbtrsoVDF++gEFkuqqQ3FnMZ5G9tXh5 vfIzLuJdinJTEYwRv32pORyeX5suZYoTCt6xusULpOjp/8mz2+w95ajQy BrlrJQ2lvBRVk55rKuN3D/u+sHJf+jGqfx8LamunVBglz4gnoKFY0rWf4 dj6GQl0zNfosh6ygAjjsWoJ1RX4V3x1CXH9h3P+QKZzjQ6w789ADPvHLE DVI9beX5jcwBaPiXmmTlTYrQVKRg/FY+wcvMabOGOf+gbZfAIdvVsiRnS xW/10ZNyEOoqjqGcwdWMbHGR48NcX6IxZ5TWJ9A6vKWjMn2r4bR+3qNYw A==; X-IronPort-AV: E=Sophos;i="5.90,251,1643698800"; d="scan'208";a="160048708" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 11 Apr 2022 02:10:41 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Mon, 11 Apr 2022 02:10:40 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 11 Apr 2022 02:10:38 -0700 From: Tudor Ambarus To: , CC: , , , , , , Tudor Ambarus Subject: [PATCH v3 1/9] mtd: spi-nor: Rename method, s/spi_nor_match_id/spi_nor_match_name Date: Mon, 11 Apr 2022 12:10:25 +0300 Message-ID: <20220411091033.98754-2-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220411091033.98754-1-tudor.ambarus@microchip.com> References: <20220411091033.98754-1-tudor.ambarus@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,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 The method is matching a flash_info entry by searching by name. Rename the method for better clarity. Signed-off-by: Tudor Ambarus Reviewed-by: Pratyush Yadav Reviewed-by: Michael Walle --- v3: collect R-bs drivers/mtd/spi-nor/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/spi-nor/core.c b/drivers/mtd/spi-nor/core.c index b4f141ad9c9c..214d3a1ac6b0 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -2876,8 +2876,8 @@ void spi_nor_restore(struct spi_nor *nor) } EXPORT_SYMBOL_GPL(spi_nor_restore); -static const struct flash_info *spi_nor_match_id(struct spi_nor *nor, - const char *name) +static const struct flash_info *spi_nor_match_name(struct spi_nor *nor, + const char *name) { unsigned int i, j; @@ -2899,7 +2899,7 @@ static const struct flash_info *spi_nor_get_flash_info(struct spi_nor *nor, const struct flash_info *info = NULL; if (name) - info = spi_nor_match_id(nor, name); + info = spi_nor_match_name(nor, name); /* Try to auto-detect if chip name wasn't specified or not found */ if (!info) info = spi_nor_read_id(nor); -- 2.25.1