From patchwork Sun Oct 27 15:53:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1185052 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="iGesvudf"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 471My41SWFz9sP4 for ; Mon, 28 Oct 2019 03:00:28 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id CB4BCC21DAF; Sun, 27 Oct 2019 15:57:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A7C43C21E1D; Sun, 27 Oct 2019 15:55:38 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AE669C21D56; Sun, 27 Oct 2019 15:55:34 +0000 (UTC) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by lists.denx.de (Postfix) with ESMTPS id B1AF0C21D56 for ; Sun, 27 Oct 2019 15:54:47 +0000 (UTC) Received: by mail-io1-f66.google.com with SMTP id z19so7771883ior.0 for ; Sun, 27 Oct 2019 08:54:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JR4zO8IYUKiuWg90QawCmaS5NAtT734px/58MnBIV8s=; b=iGesvudf0NwwYwixRAjY7C3CHGTYhf2gr/ynTSh8nbneX1G4rFeQKpYRvgHf3SklTi ER41abxDmhGTyZem4Gulj+JQut9jWZ7p+uGoXsIt9Zs5viHt9J0Ch4DaCsJm3kf2EMJp RC7FUD0J3ejd+visYmIV9yPRRN6BP2mEq8HCQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JR4zO8IYUKiuWg90QawCmaS5NAtT734px/58MnBIV8s=; b=ecyaLwoXVet+PrmpJRdS9m2pU18pwdkRw/Tzl0k3Npk/cOfxTnucPtMaFLNq7TxyXv AGOeotrxnzxbW0c6ewL8G/BZeYhEnzvLqzATyRBCbqgj7l3KQYZTrtGjBLSuUPDc8VUk xHYJEB7Su2emGbO7D5f5PaCSNiY1lmxLLZAmrW3NYNvFv3ocg/DZwXYdh7GdfHn2TfHa Gwwtsbd9rBAf8vlEoeFs4ucnGGWb0jO3DcN5XopiXEe5jdHg54Pu7V10REMX5+ILeIBC bVXaB0G0gWa/oCkDoyP+navXZED6tpLbctt55HFsFqoYICxYneezS38VVd0lr2fxbSIn QWfw== X-Gm-Message-State: APjAAAVDN6Ol8akWZ4M/ciw2Nw/KDLLRu7Bejai0sMZ8gQRHIsqTpd1J aP/Q9Qtf8yWrQql073TKBVkav61vODc+0g== X-Google-Smtp-Source: APXvYqyDL36rKAiEK5KSAEh+UbJRTIhAtos61paxV8QdANfCqkhjYjDGCvrRfhDjv0hpoOAeBd4I3w== X-Received: by 2002:a02:c98c:: with SMTP id b12mr13350598jap.40.1572191686521; Sun, 27 Oct 2019 08:54:46 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id n3sm1215070ilm.8.2019.10.27.08.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2019 08:54:46 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Sun, 27 Oct 2019 09:53:47 -0600 Message-Id: <20191027155410.187957-7-sjg@chromium.org> X-Mailer: git-send-email 2.24.0.rc0.303.g954a862665-goog In-Reply-To: <20191027155410.187957-1-sjg@chromium.org> References: <20191027155410.187957-1-sjg@chromium.org> MIME-Version: 1.0 Cc: Tom Rini , uboot-stm32@st-md-mailman.stormreply.com Subject: [U-Boot] [PATCH 07/30] mtd: spi-mem: Drop dm.h header file X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" This header file should not be included in other header files. Remove it and use a forward declaration instead. Signed-off-by: Simon Glass --- drivers/spi/spi-mem-nodm.c | 1 + drivers/spi/spi-mem.c | 5 +++++ drivers/spi/stm32_qspi.c | 2 ++ include/spi-mem.h | 5 +---- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-mem-nodm.c b/drivers/spi/spi-mem-nodm.c index 4447d44991..83dde4806e 100644 --- a/drivers/spi/spi-mem-nodm.c +++ b/drivers/spi/spi-mem-nodm.c @@ -3,6 +3,7 @@ * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/ */ +#include #include #include diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi-mem.c index 7788ab9953..e5a8109058 100644 --- a/drivers/spi/spi-mem.c +++ b/drivers/spi/spi-mem.c @@ -11,6 +11,11 @@ #include #include "internals.h" #else +#include +#include +#include +#include +#include #include #include #endif diff --git a/drivers/spi/stm32_qspi.c b/drivers/spi/stm32_qspi.c index 958c394a1a..c8c81396c5 100644 --- a/drivers/spi/stm32_qspi.c +++ b/drivers/spi/stm32_qspi.c @@ -9,7 +9,9 @@ #include #include +#include #include +#include #include #include #include diff --git a/include/spi-mem.h b/include/spi-mem.h index 36814efa86..2f3f0156d0 100644 --- a/include/spi-mem.h +++ b/include/spi-mem.h @@ -11,10 +11,7 @@ #ifndef __UBOOT_SPI_MEM_H #define __UBOOT_SPI_MEM_H -#include -#include -#include -#include +struct udevice; #define SPI_MEM_OP_CMD(__opcode, __buswidth) \ { \