From: Marek Vasut <marek.vasut+renesas@gmail.com>
Date: Thu, 16 Aug 2018 12:37:03 +0000 (+0200)
Subject: phy: Fix warning due to missing definition of structure
X-Git-Tag: v2025.01-rc5-pxa1908~3678^2~3
X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B%20.Permalink%20%7D%7D?a=commitdiff_plain;h=a265e5ef426ed224bfd2ee3d05535e6c573a16ba;p=u-boot.git

phy: Fix warning due to missing definition of structure

Fix this sort of warning if generic-phy.h is included:

include/generic-phy.h:52:42: warning: ‘struct ofnode_phandle_args’ declared inside parameter list will not be visible outside of this definition or declaration
  int (*of_xlate)(struct phy *phy, struct ofnode_phandle_args *args);

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
---

diff --git a/include/generic-phy.h b/include/generic-phy.h
index 3d26249fae..947c582f68 100644
--- a/include/generic-phy.h
+++ b/include/generic-phy.h
@@ -7,6 +7,7 @@
 #ifndef __GENERIC_PHY_H
 #define __GENERIC_PHY_H
 
+struct ofnode_phandle_args;
 
 /**
  * struct phy - A handle to (allowing control of) a single phy port.