summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/ppc4xx/miiphy.c
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 /arch/powerpc/cpu/ppc4xx/miiphy.c
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 'arch/powerpc/cpu/ppc4xx/miiphy.c')
-rw-r--r--arch/powerpc/cpu/ppc4xx/miiphy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/ppc4xx/miiphy.c b/arch/powerpc/cpu/ppc4xx/miiphy.c
index 22ed5c2..4fec126 100644
--- a/arch/powerpc/cpu/ppc4xx/miiphy.c
+++ b/arch/powerpc/cpu/ppc4xx/miiphy.c
@@ -338,7 +338,7 @@ static int emac_miiphy_command(u8 addr, u8 reg, int cmd, u16 value)
return 0;
}
-int emac4xx_miiphy_read (char *devname, unsigned char addr, unsigned char reg,
+int emac4xx_miiphy_read (const char *devname, unsigned char addr, unsigned char reg,
unsigned short *value)
{
unsigned long sta_reg;
@@ -359,7 +359,7 @@ int emac4xx_miiphy_read (char *devname, unsigned char addr, unsigned char reg,
/* write a phy reg and return the value with a rc */
/***********************************************************/
-int emac4xx_miiphy_write (char *devname, unsigned char addr, unsigned char reg,
+int emac4xx_miiphy_write (const char *devname, unsigned char addr, unsigned char reg,
unsigned short value)
{
return emac_miiphy_command(addr, reg, EMAC_STACR_WRITE, value);