Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2695177pxm; Mon, 28 Feb 2022 04:31:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3/qEn4PrYkAVJnG48JfI22gUBWw1LQlAwwUiggGOjCYGf9Pd5CPbXDuQWGy4xRfC/rdXr X-Received: by 2002:a17:906:2695:b0:6ce:f9c:b476 with SMTP id t21-20020a170906269500b006ce0f9cb476mr14970619ejc.235.1646051504967; Mon, 28 Feb 2022 04:31:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646051504; cv=none; d=google.com; s=arc-20160816; b=bA8LO4jeuXjgnFvodDx/e6tQp4nZ5oQGRAEgD/QCBpQiW6EhURSvCb8n4JxT5IaarY 4OG1qQFox1nhz8A0F5x24namDsuErOF87yed8n/Y6hCHJQ6ogaM4hV21f4sFq249bxi+ vtDKi7LADMkVMiAilTPt54VWtCrX/Jeg4glOb54KvQBlYlywshVBWcp4ioDJP4VBn6Yn 6K1oIqbxf9VwKxjjzZ+Sg20cjdl01ATRMQmOlDP8TL2aJkAStr7I+QzPHFD25vRbAVHX JQVZ5AwakO6rMnwcKjXZ9jGi8MpmrIQkYumtYln5Aive5MIyJmcUydxD63odWUmqS+Rj mhEg== 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=Q67K/s+Relu4IK72rv7tx/7EOVMl8zStOJv+GulBA8E=; b=Qqy2ghTtHY1Tu3Ox5VZBeQecu0V8Mjk3TGH5U5SRdqZRUJBmkOQtklGtr9lZLK6zPn mR4iuW6ciNpEX3STZ8soor/uw1Wi/gJOMv1Neyu7JBI96CRRxpl3XFPoU1SNsUP4mN9c M1GyRTt3+VwdiefqlKfsDqyq57BUkD1HzD8MHJlnggB9fIag7f/b2ct+Rnf3q3im4sfA LKwbzUgOP+MAQZMW1NXaYTl7KfubL70b4MhFKxAxLO7ZlTtTqPlkru+AmuxMmtEMkb/z S+2Zapr3O1wUMinKC5nh7ZBfsIDLJPm25zOftDxipKf/nC7Oa5444mh3lYXh43x5GWC4 hlfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=WpaF0rYa; 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 gc22-20020a1709072b1600b006d09b8b1942si5084703ejc.495.2022.02.28.04.31.22; Mon, 28 Feb 2022 04:31:44 -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=fail header.i=@microchip.com header.s=mchp header.b=WpaF0rYa; 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 S233302AbiB1LSS (ORCPT + 99 others); Mon, 28 Feb 2022 06:18:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234966AbiB1LSD (ORCPT ); Mon, 28 Feb 2022 06:18:03 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48C8D2A70F for ; Mon, 28 Feb 2022 03:17:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646047043; x=1677583043; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BH6EZIu4OsWu2aIV5tde913BHkUKDL7QFYpT5jrDQJg=; b=WpaF0rYa0sOErDh5r96oCBoa/tRQlFAA2N1KL1oJISyqcTLLqQG9otlw C2ESUwOoWpnt9t5ImSzqs2CR4NCA7SSj3Ny/47aHUi2O9CNxyWbztCGSK m2f2KOJ+yJ12rW1/5bFaPEnq/jC5WSBZFkL5oUxRJx+8DC2RnMqLtHXY/ g+otnh58+ZjuGsuMPS+R+n3sJ1aMr791twpG2yKI7VGk4VtbhxhiHj2qn 4GIa+lthtDJy0eSgHXJ0MaWqfomLCCSWgYaTm068HaGXf1AZgPV4wuDaN uKhdTuTjWeCjrmP49RhDj+pJshSq4JPhA0Iuy5YCJlgXwUTCxGWIfqImC Q==; X-IronPort-AV: E=Sophos;i="5.90,142,1643698800"; d="scan'208";a="154614913" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Feb 2022 04:17:22 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) 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, 28 Feb 2022 04:17:21 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 28 Feb 2022 04:17:18 -0700 From: Tudor Ambarus To: , CC: , , , , , , Tudor Ambarus Subject: [PATCH v2 1/8] mtd: spi-nor: Rename method, s/spi_nor_match_id/spi_nor_match_name Date: Mon, 28 Feb 2022 13:17:05 +0200 Message-ID: <20220228111712.111737-2-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220228111712.111737-1-tudor.ambarus@microchip.com> References: <20220228111712.111737-1-tudor.ambarus@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.8 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,T_SCC_BODY_TEXT_LINE, T_SPF_PERMERROR 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 9014008e60b3..f3c359d03163 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