diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-07-27 18:35:08 -0400 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2010-08-09 11:52:29 -0700 |
commit | 5700bb63522c2af9276f25a15448b61f19d72841 (patch) | |
tree | 61d112f470573e55e8dc32cd02eec52d14020b7c /drivers/net/ep93xx_eth.c | |
parent | 78b7a8ef8b37582a37a5c2381191061380b42831 (diff) | |
download | u-boot-imx-5700bb63522c2af9276f25a15448b61f19d72841.zip u-boot-imx-5700bb63522c2af9276f25a15448b61f19d72841.tar.gz u-boot-imx-5700bb63522c2af9276f25a15448b61f19d72841.tar.bz2 |
miiphy: constify device name
The driver name does not need to be writable, so constify it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net/ep93xx_eth.c')
-rw-r--r-- | drivers/net/ep93xx_eth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ep93xx_eth.c b/drivers/net/ep93xx_eth.c index 4e39948..c09384c 100644 --- a/drivers/net/ep93xx_eth.c +++ b/drivers/net/ep93xx_eth.c @@ -44,9 +44,9 @@ #define GET_REGS(eth_dev) (GET_PRIV(eth_dev)->regs) /* ep93xx_miiphy ops forward declarations */ -static int ep93xx_miiphy_read(char * const dev, unsigned char const addr, +static int ep93xx_miiphy_read(const char * const dev, unsigned char const addr, unsigned char const reg, unsigned short * const value); -static int ep93xx_miiphy_write(char * const dev, unsigned char const addr, +static int ep93xx_miiphy_write(const char * const dev, unsigned char const addr, unsigned char const reg, unsigned short const value); #if defined(EP93XX_MAC_DEBUG) @@ -555,7 +555,7 @@ eth_init_done: /** * Read a 16-bit value from an MII register. */ -static int ep93xx_miiphy_read(char * const dev, unsigned char const addr, +static int ep93xx_miiphy_read(const char * const dev, unsigned char const addr, unsigned char const reg, unsigned short * const value) { struct mac_regs *mac = (struct mac_regs *)MAC_BASE; @@ -607,7 +607,7 @@ static int ep93xx_miiphy_read(char * const dev, unsigned char const addr, /** * Write a 16-bit value to an MII register. */ -static int ep93xx_miiphy_write(char * const dev, unsigned char const addr, +static int ep93xx_miiphy_write(const char * const dev, unsigned char const addr, unsigned char const reg, unsigned short const value) { struct mac_regs *mac = (struct mac_regs *)MAC_BASE; |