Message ID | 20200719161601.495421-28-sjg@chromium.org |
---|---|
State | Accepted |
Commit | f125e3cc1217c630dab1673c2ca181cc754b434b |
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=Pxb40zZb; 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 4B8qrn0ZTKz9sR4 for <incoming@patchwork.ozlabs.org>; Mon, 20 Jul 2020 02:22:32 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4D16581F98; Sun, 19 Jul 2020 18:20:12 +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="Pxb40zZb"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7913681CB9; Sun, 19 Jul 2020 18:17:10 +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-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) (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 AFDE281C1E for <u-boot@lists.denx.de>; Sun, 19 Jul 2020 18:16:48 +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-io1-xd42.google.com with SMTP id f23so15154842iof.6 for <u-boot@lists.denx.de>; Sun, 19 Jul 2020 09:16:48 -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=TOstPN/gXPPOLhVUO4IAMaeGgL2+r3Ma2Lb/vYSrVM8=; b=Pxb40zZb28YVRP0iOOVFUO4hYLAFrvf2s3/w4yjKOJbltyYKaWExZGXanCHvhVYPyr Vo4D1JOAHtBtu2HhW6eyVn+5IY2lMEd1aoRqtGSg4lsfICEHJndlQGXwVjXJZt15fJJw H8nKLqqEGyLKtJmRisbKXGWB6H3qG4HFndj8Q= 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=TOstPN/gXPPOLhVUO4IAMaeGgL2+r3Ma2Lb/vYSrVM8=; b=ZBkjBfP3dIygsl2kzWym3hBda+QmQeYkft7OMYicb3Uv7M2iTd4HdAcJQpTUWvVVAQ E8+QUQvjZY3rt0HoLzLPQN7YoUCsuKaJpFslJ5Rd/VQ1YQNSzaqXdfHnAOJyjCkE3plg WsP6batvC/DfRTeqBX7s97Zw7nOhatCN6GteSzJErmSQk+WXQPUekteqnhOoO7q4jJ/h IBcQjEl/t+tSXOFKfufpQKo0Fk1vD7B3S+8Q1mc5/koFt0X7fN5Di8k/OIzZU+lx8Ks5 MGHDRLxMGtCDPUNXPvElha9gulA3N7nmg44iR1jsq3Ae8KQeTYenq9NwbHSPYDhvEJZJ hgsw== X-Gm-Message-State: AOAM531Yd3IwnmwI6lCIatzPTnr9rGh36mh0iPPrCtQu5wlWXvTRX4Zr 1pFSCmqdfA/3Qtb9jI2/I+ALQFFNS2yFsg== X-Google-Smtp-Source: ABdhPJzOoURJNvahPGBd42sO+BoxFjm1Hdfmsn+p/FnPYZvDD2BQMULhH81R9ej0rZt6biODCpUnIw== X-Received: by 2002:a5e:8d15:: with SMTP id m21mr19388443ioj.60.1595175407410; Sun, 19 Jul 2020 09:16:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jul 2020 09:16:47 -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>, Joe Hershberger <joe.hershberger@ni.com>, Peng Fan <peng.fan@nxp.com>, Ye Li <ye.li@nxp.com> Subject: [PATCH 27/31] net: Drop dm.h header file in eth_phy.h Date: Sun, 19 Jul 2020 10:15:57 -0600 Message-Id: <20200719161601.495421-28-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:57AM -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/include/eth_phy.h b/include/eth_phy.h index 19c496551b..be6c881527 100644 --- a/include/eth_phy.h +++ b/include/eth_phy.h @@ -6,9 +6,10 @@ #ifndef _eth_phy_h_ #define _eth_phy_h_ -#include <dm.h> #include <phy.h> +struct udevice; + int eth_phy_binds_nodes(struct udevice *eth_dev); int eth_phy_set_mdio_bus(struct udevice *eth_dev, struct mii_dev *mdio_bus); struct mii_dev *eth_phy_get_mdio_bus(struct udevice *eth_dev);
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> --- include/eth_phy.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)