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/at91_emac.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/at91_emac.c')
-rw-r--r-- | drivers/net/at91_emac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/at91_emac.c b/drivers/net/at91_emac.c index 245da12..0912f52 100644 --- a/drivers/net/at91_emac.c +++ b/drivers/net/at91_emac.c @@ -170,7 +170,7 @@ at91_emac_t *get_emacbase_by_name(char *devname) return (at91_emac_t *) netdev->iobase; } -int at91emac_mii_read(char *devname, unsigned char addr, +int at91emac_mii_read(const char *devname, unsigned char addr, unsigned char reg, unsigned short *value) { at91_emac_t *emac; @@ -181,7 +181,7 @@ int at91emac_mii_read(char *devname, unsigned char addr, } -int at91emac_mii_write(char *devname, unsigned char addr, +int at91emac_mii_write(const char *devname, unsigned char addr, unsigned char reg, unsigned short value) { at91_emac_t *emac; |