phy: Fix warning due to missing definition of structure
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Thu, 16 Aug 2018 12:37:03 +0000 (14:37 +0200)
committerMarek Vasut <marex@denx.de>
Tue, 28 Aug 2018 09:00:18 +0000 (11:00 +0200)
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>
include/generic-phy.h

index 3d26249fae0a51ed88a2f6b7aa3fac9bef8f19a5..947c582f68b1f07e9d22f03de85328fcc7e9b873 100644 (file)
@@ -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.