From patchwork Sun Oct 27 15:53:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1185053 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="ao2OmH6S"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 471N0p56C1z9sPK for ; Mon, 28 Oct 2019 03:02:48 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 6301FC21D56; Sun, 27 Oct 2019 15:59:29 +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 F3810C21E1B; Sun, 27 Oct 2019 15:56:01 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D4948C21DF3; Sun, 27 Oct 2019 15:55:59 +0000 (UTC) Received: from mail-il1-f195.google.com (mail-il1-f195.google.com [209.85.166.195]) by lists.denx.de (Postfix) with ESMTPS id A72F1C21DFD for ; Sun, 27 Oct 2019 15:55:02 +0000 (UTC) Received: by mail-il1-f195.google.com with SMTP id d83so5855612ilk.7 for ; Sun, 27 Oct 2019 08:55:02 -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=6+eGiV2rZvxdW1tKr7OmVt5swLAUqy5wGMCQi31tZ/w=; b=ao2OmH6SQZvT+DTFwLLZa9rjpmu8QO0PB24k08vallAcRItC/P7PhJAHuvIhbjSsvS tnEbFkrS+9+HgV5j5NkzEKGKpmWWHhSFo698jwNHs/Xa3whfRZ5KBLS7ohxJDoutZ/Nn sDAUcbHX3/c/cHcsfq3EFPBxN3McJ8CfxKBt8= 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=6+eGiV2rZvxdW1tKr7OmVt5swLAUqy5wGMCQi31tZ/w=; b=LJezdr2kbMql7Qn4mN3pGWwmLIYAGlt5FBRjEcfWfzGRdyHFwFcfn6G3ZaDJEGgxnO Z56rUk7phs1ZP3D9j1uNivChtRANR6M9L/0tB903g3G/xc8j8K2LH5RVnBVlVUw5WMlK e66B5TfJLM2VsP1kgyqkfIcb9UAhACHE7UtItdqnKJVqVcpLv4bz4HijyvSK1YnkxBux dYeWTDcD4HuaTr0G3RnCDti11S0ZpE0k/hljLbZBCVFlLcg8b1QH3t/JXN83qacgc34K x6rP/d7poNslBfxs7gyJce9vqPQYDjjKHejulqhaJMB++nIsGzyFeEeZtr90Dn0Bpt2D IVyQ== X-Gm-Message-State: APjAAAWFdD39t38BX642gLvMwRQIYfHgFD5mD+w00EFRMRN/IPzunixH 3W44QD5wKesk9czdYYMPT0/rJtS8gW/CJg== X-Google-Smtp-Source: APXvYqwI6yRYwQfsVQftZUakwGPmLFLCyPTnE96Lr4LXLT7U5OlZY+Gs8FGgjOqAaMuspeL2wZW7yA== X-Received: by 2002:a92:7703:: with SMTP id s3mr15232729ilc.274.1572191701543; Sun, 27 Oct 2019 08:55:01 -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.55.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Oct 2019 08:55:01 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Sun, 27 Oct 2019 09:53:54 -0600 Message-Id: <20191027155410.187957-14-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 , "NXP i.MX U-Boot Team" Subject: [U-Boot] [PATCH 14/30] thermal: 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 --- arch/arm/mach-imx/cpu.c | 1 + include/thermal.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index d39f607e3f..68268bd515 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include diff --git a/include/thermal.h b/include/thermal.h index 11d75256e0..52a3317fd5 100644 --- a/include/thermal.h +++ b/include/thermal.h @@ -7,7 +7,7 @@ #ifndef _THERMAL_H_ #define _THERMAL_H_ -#include +struct udevice; int thermal_get_temp(struct udevice *dev, int *temp);