Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp112161rwb; Wed, 10 Aug 2022 15:57:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR7lL1HVTj4dQGPERrYxF3krFI9d+MBzLhQancF2IdFJUs0OsoqTq5fHOPKButUzfu9KhApM X-Received: by 2002:a05:6a00:189d:b0:52d:d4ae:d9f7 with SMTP id x29-20020a056a00189d00b0052dd4aed9f7mr29275931pfh.18.1660172243713; Wed, 10 Aug 2022 15:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660172243; cv=none; d=google.com; s=arc-20160816; b=0KvqoMadYl5rHAWixX/CdLsphKg/njJfdvOVaLSlVIM87Ndyar1VdnDB2CI+CJIsDq +bX4jnZe267A7CBmDiWLnzjSSgepFJuSNF07MjHZ4CK8GyE/4jvBS74wQ0CzlOHkg4hy sGwlb76qfqPvp2SAVng8zsxCYosmpIeLi67Vo4Ek5qVRrJPqbheddjEHXPpyBsXG2w9p Kzwl9DjOnUs4BiwICLz1fPHa/gSAqhR3nCdXcLIRroNCPiIjbQXBJfF8KeCPJNT6S6s+ 9RBWZ4s3vQdChxN6AdlgBIzEFN+gLTR7FTR4iUYySSy2HU0BriEtxnfn3zrGwfjdc3JF GgQA== 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=rCNyjvmL2t4xDROC5RIKvX+bOmZBVEh/OEx8VEUlcCg=; b=RzIU5amv0HytraUrCGINS0EILCnehOtJkpnZLogfjiH7WjuEGzTKi4K/wChUmBwYrH wqvUEm3PexNKXsmbaX8rhRA8k1XqHaJZDb6Kq7BFpK+0u9iCfzcW1lZPOQm/sfoLAL7z Tr3AA/NcfS2o+G9Q2i0CvOpSYsRDRw05/jsumDdSWExS2PmzfXdy1WW2ruuLz5Z8Hwn4 aKlKnlnGB3+DCn3UNlZXOOqc/sNYAl3gSuwS2vRewAWofoWa5Jz/3I778KWd1599tPTO vIoL/tn2NG0zGQz1utickigaKGBYf/0ZTdNCs/ykYyVtLNYeZv7Ny/gZH9SWEQ7ANrAg VJqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=CggvKbqC; 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 q12-20020a656a8c000000b0041a5359f289si18736709pgu.229.2022.08.10.15.57.09; Wed, 10 Aug 2022 15:57:23 -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=pass header.i=@walle.cc header.s=mail2016061301 header.b=CggvKbqC; 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 S233290AbiHJWHX (ORCPT + 99 others); Wed, 10 Aug 2022 18:07:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232926AbiHJWHN (ORCPT ); Wed, 10 Aug 2022 18:07:13 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEF5184EC6 for ; Wed, 10 Aug 2022 15:07:11 -0700 (PDT) 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 D92F82224F; Thu, 11 Aug 2022 00:07:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1660169230; 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=rCNyjvmL2t4xDROC5RIKvX+bOmZBVEh/OEx8VEUlcCg=; b=CggvKbqCKkt3vjgFSVDirO7LI3piTJ7r0rkYFWIONKsCaGrEdhMZowOkj52N3KlYvNGKr+ JzarcodUcgH4bH2id5Q6iAsjj1p+simLbqWM3WG/KD+S6L66tk1kJlQbtkKqbxKsGV43Ay BJ75UV+6JM5J/wTcW/OQnYakQKHnEsQ= From: Michael Walle To: Tudor Ambarus , Pratyush Yadav Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, Michael Walle , Takahiro Kuwano Subject: [PATCH v2 4/7] mtd: spi-nor: move function declaration out of sfdp.h Date: Thu, 11 Aug 2022 00:06:51 +0200 Message-Id: <20220810220654.1297699-5-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220810220654.1297699-1-michael@walle.cc> References: <20220810220654.1297699-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 sfdp.h should only contain constants related to the JEDEC SFDP specification(s). Signed-off-by: Michael Walle Reviewed-by: Takahiro Kuwano --- drivers/mtd/spi-nor/core.h | 2 ++ drivers/mtd/spi-nor/sfdp.h | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h index 85b0cf254e97..68aaccaa12d8 100644 --- a/drivers/mtd/spi-nor/core.h +++ b/drivers/mtd/spi-nor/core.h @@ -701,6 +701,8 @@ int spi_nor_controller_ops_read_reg(struct spi_nor *nor, u8 opcode, int spi_nor_controller_ops_write_reg(struct spi_nor *nor, u8 opcode, const u8 *buf, size_t len); +int spi_nor_parse_sfdp(struct spi_nor *nor); + static inline struct spi_nor *mtd_to_spi_nor(struct mtd_info *mtd) { return container_of(mtd, struct spi_nor, mtd); diff --git a/drivers/mtd/spi-nor/sfdp.h b/drivers/mtd/spi-nor/sfdp.h index bbf80d2990ab..c1969f0a2f46 100644 --- a/drivers/mtd/spi-nor/sfdp.h +++ b/drivers/mtd/spi-nor/sfdp.h @@ -107,6 +107,4 @@ struct sfdp_parameter_header { u8 id_msb; }; -int spi_nor_parse_sfdp(struct spi_nor *nor); - #endif /* __LINUX_MTD_SFDP_H */ -- 2.30.2