Message ID | 20200719161601.495421-12-sjg@chromium.org |
---|---|
State | Accepted |
Commit | 055efe5690eaab99301151878deab9a382c6e65e |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=K9zaoK5+; 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B8qmG06c2z9sR4 for <incoming@patchwork.ozlabs.org>; Mon, 20 Jul 2020 02:18:37 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA97981C3B; Sun, 19 Jul 2020 18:17:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="K9zaoK5+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 71FEC81C44; Sun, 19 Jul 2020 18:16:42 +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.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) (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 EA46881C3E for <u-boot@lists.denx.de>; Sun, 19 Jul 2020 18:16:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x143.google.com with SMTP id a11so11304808ilk.0 for <u-boot@lists.denx.de>; Sun, 19 Jul 2020 09:16:34 -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=aOBq2NzgVfqbHyNv0KpIywPOAGHkm0ktyqv7iFTMTXE=; b=K9zaoK5+IIkxu7A0czgb3lyB9aEv3Dk/5gIqmpPdWT6+CrRjBsJgv8ptFZkTiJ2ecn Iu+OFiT5DxI/yq7RMYMu7TiUBFE9gYjthF9Ui4MjJS61KBIi0ht2W2pOZjuoobAP1giD kOJO8Wp2ZY9Zrylh4l7W2FcYbfpKjRwAviIq8= 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=aOBq2NzgVfqbHyNv0KpIywPOAGHkm0ktyqv7iFTMTXE=; b=bGRi9I7RgdzKl+LZeKq0pMQ28XcccG+IViPo0qaj9oL74Q6kyR/jY3/qA+ncE77szb jsJSmn1p0XR0odR8hCBjOjMXi5hBfJitTkceWmdyjiOee7J7VzsJgA/I8UhWkISJmX1J JNg9cPJDFASPgfMwTg+SyxO909upamMhosFSmcMxCIFB5na0AqBggb9hmcHwExMGXZsB FS/C4GtwHBirzpXsA9O9ATk1A4tJkrhJQ06xXzxm9rfpuQytuszEkYg7FAttIvhxKm3l nJHLYUAnX6VuUgnvstlWqiBHR4WNDmkpy4EWMz90FeM6jpNCeA5KpTeGBb69Qp990Wzw OYhQ== X-Gm-Message-State: AOAM5321l/9xoLC6e/THw1JFAVdVCz4NfuEdIp4771+j3eYTgyhEb7pB 3Zr/lGCpeNcq6To/b83ruOlcB/rBs3qlnQ== X-Google-Smtp-Source: ABdhPJzTxRK4zeawpmxpp/ceIeqo3Ov1u1XdRkH2aHH/YGw5sniC2COuU+SqPwpLwLgBhG9TzlivLw== X-Received: by 2002:a92:cecd:: with SMTP id z13mr19297454ilq.76.1595175392033; Sun, 19 Jul 2020 09:16:32 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id c3sm7415632ilj.31.2020.07.19.09.16.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jul 2020 09:16:31 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Tom Rini <trini@konsulko.com>, Masahiro Yamada <yamada.masahiro@socionext.com>, Simon Glass <sjg@chromium.org>, Fabio Estevam <festevam@gmail.com>, "NXP i.MX U-Boot Team" <uboot-imx@nxp.com>, Stefano Babic <sbabic@denx.de> Subject: [PATCH 11/31] thermal: Drop dm.h header file Date: Sun, 19 Jul 2020 10:15:41 -0600 Message-Id: <20200719161601.495421-12-sjg@chromium.org> X-Mailer: git-send-email 2.28.0.rc0.105.gf9edc3c819-goog In-Reply-To: <20200719161601.495421-1-sjg@chromium.org> References: <20200719161601.495421-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
dm: Avoid including dm.h in header files
|
expand
|
On Sun, Jul 19, 2020 at 10:15:41AM -0600, Simon Glass wrote: > This header file should not be included in other header files. Remove it > and use a forward declaration instead. > > Signed-off-by: Simon Glass <sjg@chromium.org> Applied to u-boot/master, thanks!
diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c index 694c26d35f..fe8d5947cc 100644 --- a/arch/arm/mach-imx/cpu.c +++ b/arch/arm/mach-imx/cpu.c @@ -8,6 +8,7 @@ #include <bootm.h> #include <common.h> +#include <dm.h> #include <init.h> #include <log.h> #include <net.h> 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 <dm.h> +struct udevice; int thermal_get_temp(struct udevice *dev, int *temp);
This header file should not be included in other header files. Remove it and use a forward declaration instead. Signed-off-by: Simon Glass <sjg@chromium.org> --- arch/arm/mach-imx/cpu.c | 1 + include/thermal.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)