Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1859573pxb; Wed, 9 Feb 2022 06:07:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbIGdR++Lw0LUIxsTajYuVjzkiwt9Mgofl0XSOUUuKWV9o4fgj1fZ4w1xaiUS3abyqF3Gr X-Received: by 2002:aa7:dc44:: with SMTP id g4mr2654027edu.438.1644415664236; Wed, 09 Feb 2022 06:07:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644415664; cv=none; d=google.com; s=arc-20160816; b=yvXFWBUIApEPkw4FrcXZfc47TtKfAJZ8/F3zLNUOmhNaNqwFHkGIREECzZkDt+qz4W U5ZPFkaNmGY8aKPqBPQj6455r75B77s7On56Ngvy9daTwTAcgz8WCdwDHYNirvLArur3 One6UJhGro5YTO/0w50rxWr2Z2FN6ssPT67HH7XrSM4XYuxugf7Cl538zs4BnzJIguHF VWOkLPG9hENW3LF7sJmRQDOVaO8f0ejsCjhATle+V7+ex4g1DEsKGexvKVvYb15hDXOg FzvxpZJFY21BrXV1ddX06MlAQczFKmuBBcNAr/c6t1wvGzJ/Ef7flyv+DJKPgyv0d1dw FIug== 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 :ironport-sdr:dkim-signature; bh=ryOSD+GwAvEU1YXSCCxDdJxwhsp8ahOp20wx06ZDFdw=; b=qjQqNyMjwKQoORsqLCG4ovzojibBJhhr+wRZIqrjKfpvqG4CJ+M2+qmqSw80rV+HnF +75JzhzOfdL0B3NUTNQ4FBQvR7vHenaG8OMqE1/ggZF4um8aCQLGjW+P8OYln4MdAL0+ xAVl/cMc6weKP/MgGrF+xX/8vmMVROKUyIzxEcJeLFs5gaRhqh8/A3P27/JU3GeESJCC 30j8Zz73a7TvMNw+BeR26fKmF5tlg8nnyHo+TOO817L1ag7taEyAI0kKJOaw9ZWLGeIu O/fXtxjLioEIuVXBfN9MGuAoJ8Yq+Zv/9Ej0gKOLsJptEdRTN7xvhxvUdKD83zpD9H08 NoQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b="k/08jTxy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds19si12202868ejc.458.2022.02.09.06.07.16; Wed, 09 Feb 2022 06:07:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b="k/08jTxy"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232066AbiBINhg (ORCPT + 99 others); Wed, 9 Feb 2022 08:37:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234158AbiBINh0 (ORCPT ); Wed, 9 Feb 2022 08:37:26 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A2E5C03CA49 for ; Wed, 9 Feb 2022 05:37:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1644413829; x=1675949829; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=csMWGGqwyJOn5ODRm2zWMJY6PKgfI+luK/C34/+qqRk=; b=k/08jTxyGN5PfDZeOQPWWJr6UiIWTiY9BkIBgmNcttLIdCZaSjgMlRPZ qYuf6NFqa23bXhDWVayR+5zZFt8HS1QTBe8xNPLDbtSpHDyppZf6VmWli naFKcJxjWTMoMSUnJRpqQeDuuOD6jaomcvMj05V6g7AgRXESFWImVxwvN nlNPY+ZLq20s0J6+k862ajzDrCWBmTM1kbrpW/g4zg9igJTMUz59zrs2w VPwkB/u4AXByo2orhmbaDY5gvpwnmk+8DE7LZSvdABYn7IZbrGnXYa8jn ACv+RLByhJGB5gUh4uXDS/069pLccUGhLulcLENwjAoapubOi0GG7gRW8 w==; IronPort-SDR: XVixCb1Es2Oko7EPztHA/LfuIsuG3pNt/2DbzMr72NScI4+CV+lZKdkX93NY8yTBrXiCNQJj/Q sNWTodayr8lfiPm85j8InjL22OrEtMqdAR7miuWSUkt1kZd/0TNFFWpfFQSB8WTOF11zTo/p47 2GoLPf5ZwHMxxNBo2XzkIfKH69iT1iHjp13EYwRtvdtHO1EwxCSMqgpLo4HyHOywyK/FbIbFcH WESGS0nxNgYx7cwqaN2bN0SOdf/JWzmrbBkm/1Bhl8cNVmFjopY4Lin3rjn4PRvkpqciv9PBmc Bif1iyllgnMEA8Fy4u9Qo66C X-IronPort-AV: E=Sophos;i="5.88,355,1635231600"; d="scan'208";a="152460072" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 09 Feb 2022 06:37:08 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 9 Feb 2022 06:37:07 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Wed, 9 Feb 2022 06:37:02 -0700 From: Tudor Ambarus To: , CC: , , , , , , , , Tudor Ambarus Subject: [PATCH v6 1/7] mtd: spi-nor: Rename method, s/spi_nor_match_id/spi_nor_match_name Date: Wed, 9 Feb 2022 15:36:50 +0200 Message-ID: <20220209133656.374903-2-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220209133656.374903-1-tudor.ambarus@microchip.com> References: <20220209133656.374903-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, 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 --- 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 04ea180118e3..345f9da96fab 100644 --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c @@ -3109,8 +3109,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; @@ -3132,7 +3132,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