From patchwork Mon Jun 12 08:09:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Miguel Silva X-Patchwork-Id: 1793803 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=euzavWnd; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Qfkwt4tf5z20X6 for ; Mon, 12 Jun 2023 18:14:06 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D61BA8613D; Mon, 12 Jun 2023 10:13:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="euzavWnd"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C953686140; Mon, 12 Jun 2023 10:13:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B4B7084780 for ; Mon, 12 Jun 2023 10:13:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rui.silva@linaro.org Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4f642a24555so4700435e87.3 for ; Mon, 12 Jun 2023 01:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686557603; x=1689149603; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TwRQFVNgk5iYBZjiAyXKFcgSva9nP31u4rqCpTdVzK4=; b=euzavWndBfuo/Mwq2WJNkRy9pZom/R0L9Clm7mqIUZRPUhqpjMcKfb6KX78d72CrTC MBvhGyjc1NPdrpTuYXiRkCd8IsfTdjrGPYfgyxNwzZcR8SPXX1xwWrzJuB4py0N0flIL oi/DLjDKprLr0d8vJndp/SOc/8q84gsYpsAWgDVjRRXLhk0AtEqlbFL+XRvb1IKCtNTo llsDnI0aONEwzuoqErZ5+m4DR09xWg6XwAvz02QJtFmnZy0qadagZQc6t53iO3gAX7tp TQ76k08RxoaIFK9lW9SbDxcMVebkddPXDdDa68jUc2rCbZmc/b1VuJYDaiefw/7hi0QN 9jWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686557603; x=1689149603; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TwRQFVNgk5iYBZjiAyXKFcgSva9nP31u4rqCpTdVzK4=; b=hHVWKB9FxZwjQRCqfgnXI7I9Xc2isANOx2wv4Vm8+Xt8JoMh8C3fIoKg4kUEQLJYHL 7vz/pj9nI5FtJKtwzmTOBXu4fixECsDcLZqVreDjrJVqkgqb/yQo0S3rqMIbDX80P12i kl6WQ56dZJGjKDdCJCw8AQSHy4XnxtTuZoo4gJGoXS4izYIivkuWfHWaN5yxXO5Z2ppF hgNcTrpIkPWCU/JXP3TTYK07DOZX1d4g2FblG62VCjpyxKF1Mpj9PIW71+Ec7fn6mCuW bVSY1abgzCKJx/4AIgxi0paKMJvUwRke/qlvsA8ngrt4bRAw9QDobflCIWj6aVRQthap R8Lw== X-Gm-Message-State: AC+VfDynU0kpdgQK4QxoZzHqx8NOm8ZkOFXikZp5fSmRkbfvkHT+uXTC RQsqEDWK43DBHOfZXQX8CfR25p+95mU4UJ11xD0= X-Google-Smtp-Source: ACHHUZ7lGmD1iFcuj7sL6VA2zOZfEkPQI5EdsAMHGEyX64KEvQ+tVwYJ8Kory/1p8v3vVwaaXgOKNw== X-Received: by 2002:a19:434c:0:b0:4f4:e744:2e71 with SMTP id m12-20020a19434c000000b004f4e7442e71mr3158885lfj.64.1686557602873; Mon, 12 Jun 2023 01:13:22 -0700 (PDT) Received: from arch-thunder.local (a109-49-33-111.cpe.netcabo.pt. [109.49.33.111]) by smtp.gmail.com with ESMTPSA id m9-20020a056000008900b0030ae499da59sm11637390wrx.111.2023.06.12.01.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 01:13:22 -0700 (PDT) From: Rui Miguel Silva To: u-boot@lists.denx.de Cc: Simon Glass , Tom Rini , Ilias Apalodimas , Rui Miguel Silva Subject: [PATCH v3 2/6] nvmxip: move header to include Date: Mon, 12 Jun 2023 09:09:16 +0100 Message-ID: <20230612081314.723786-3-rui.silva@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230612081314.723786-1-rui.silva@linaro.org> References: <20230612081314.723786-1-rui.silva@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Move header to include to allow external code to get the internal bdev structures to access block device operations. as at it, just add the UCLASS_NVMXIP string so we get the correct output in partitions listing. Signed-off-by: Rui Miguel Silva --- {drivers/mtd/nvmxip => include}/nvmxip.h | 0 test/dm/nvmxip.c | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename {drivers/mtd/nvmxip => include}/nvmxip.h (100%) diff --git a/drivers/mtd/nvmxip/nvmxip.h b/include/nvmxip.h similarity index 100% rename from drivers/mtd/nvmxip/nvmxip.h rename to include/nvmxip.h diff --git a/test/dm/nvmxip.c b/test/dm/nvmxip.c index e934748eb5d2..89bf481f6161 100644 --- a/test/dm/nvmxip.c +++ b/test/dm/nvmxip.c @@ -17,7 +17,7 @@ #include #include #include -#include "../../drivers/mtd/nvmxip/nvmxip.h" +#include /* NVMXIP devices described in the device tree */ #define SANDBOX_NVMXIP_DEVICES 2