[PATCH 2/3] net/designware: fix phy_addr type to int

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Thu Oct 4 03:00:26 EDT 2012


so we can pass -1 for auto detect

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 include/net/designware.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/designware.h b/include/net/designware.h
index 3f9f5b9..1c8a00e 100644
--- a/include/net/designware.h
+++ b/include/net/designware.h
@@ -2,7 +2,7 @@
 #define __DWC_UNIMAC_H
 
 struct dwc_ether_platform_data {
-	u8 phy_addr;
+	int phy_addr;
 	void (*fix_mac_speed)(int speed);
 };
 
-- 
1.7.10.4




More information about the barebox mailing list