summaryrefslogtreecommitdiff
path: root/board/evb64260
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-07-27 18:35:08 -0400
committerBen Warren <biggerbadderben@gmail.com>2010-08-09 11:52:29 -0700
commit5700bb63522c2af9276f25a15448b61f19d72841 (patch)
tree61d112f470573e55e8dc32cd02eec52d14020b7c /board/evb64260
parent78b7a8ef8b37582a37a5c2381191061380b42831 (diff)
downloadu-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 'board/evb64260')
-rw-r--r--board/evb64260/eth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/board/evb64260/eth.c b/board/evb64260/eth.c
index 8d1b606..a96e655 100644
--- a/board/evb64260/eth.c
+++ b/board/evb64260/eth.c
@@ -89,7 +89,7 @@ static const char ether_port_phy_addr[3]={4,5,6};
/* MII PHY access routines are common for all i/f, use gal_ent0 */
#define GT6426x_MII_DEVNAME "gal_enet0"
-int gt6426x_miiphy_read(char *devname, unsigned char phy,
+int gt6426x_miiphy_read(const char *devname, unsigned char phy,
unsigned char reg, unsigned short *val);
static inline unsigned short
@@ -345,7 +345,7 @@ gt6426x_eth_disable(void *v)
MII utilities - write: write to an MII register via SMI
***************************************************************************/
int
-gt6426x_miiphy_write(char *devname, unsigned char phy,
+gt6426x_miiphy_write(const char *devname, unsigned char phy,
unsigned char reg, unsigned short data)
{
unsigned int temp= (reg<<21) | (phy<<16) | data;
@@ -360,7 +360,7 @@ gt6426x_miiphy_write(char *devname, unsigned char phy,
MII utilities - read: read from an MII register via SMI
***************************************************************************/
int
-gt6426x_miiphy_read(char *devname, unsigned char phy,
+gt6426x_miiphy_read(const char *devname, unsigned char phy,
unsigned char reg, unsigned short *val)
{
unsigned int temp= (reg<<21) | (phy<<16) | 1<<26;