Re: [U-Boot] [PATCH] smc911x: Fix build warnings

2011-09-09 Thread Wolfgang Denk
Dear Wolfgang Denk,

In message <1315479867-23506-1-git-send-email...@denx.de> you wrote:
> Commit 6af1d41 "smc911x MII made available" was missing a few "const"
> qualifiers.  Fix the resulting in build warnings:
> 
> smc911x.c: In function 'smc911x_initialize':
> smc911x.c:297: warning: passing argument 2 of 'miiphy_register' from 
> incompatible pointer type
> smc911x.c:297: warning: passing argument 3 of 'miiphy_register' from 
> incompatible pointer type
> 
> Signed-off-by: Wolfgang Denk 
> Cc: Helmut Raiger 
> ---
>  drivers/net/smc911x.c |4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
You!  What PLANET is this!
-- McCoy, "The City on the Edge of Forever", stardate 3134.0
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH] smc911x: Fix build warnings

2011-09-08 Thread Wolfgang Denk
Commit 6af1d41 "smc911x MII made available" was missing a few "const"
qualifiers.  Fix the resulting in build warnings:

smc911x.c: In function 'smc911x_initialize':
smc911x.c:297: warning: passing argument 2 of 'miiphy_register' from 
incompatible pointer type
smc911x.c:297: warning: passing argument 3 of 'miiphy_register' from 
incompatible pointer type

Signed-off-by: Wolfgang Denk 
Cc: Helmut Raiger 
---
 drivers/net/smc911x.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index 6cc236c..a677fd4 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -237,7 +237,7 @@ static int smc911x_rx(struct eth_device *dev)
 
 #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
 /* wrapper for smc911x_eth_phy_read */
-static int smc911x_miiphy_read(char *devname, u8 phy, u8 reg, u16 *val)
+static int smc911x_miiphy_read(const char *devname, u8 phy, u8 reg, u16 *val)
 {
struct eth_device *dev = eth_get_dev_by_name(devname);
if (dev)
@@ -245,7 +245,7 @@ static int smc911x_miiphy_read(char *devname, u8 phy, u8 
reg, u16 *val)
return -1;
 }
 /* wrapper for smc911x_eth_phy_write */
-static int smc911x_miiphy_write(char *devname, u8 phy, u8 reg, u16 val)
+static int smc911x_miiphy_write(const char *devname, u8 phy, u8 reg, u16 val)
 {
struct eth_device *dev = eth_get_dev_by_name(devname);
if (dev)
-- 
1.7.6

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot