diff options
author | Ben Warren <biggerbadderben@gmail.com> | 2010-07-29 12:56:11 -0700 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2010-08-09 11:52:30 -0700 |
commit | d7fb9bcfb29a1cbdbda7006658e76c2d9da0f66f (patch) | |
tree | 3924a01a2169dffd939ca571be2ac66855b154b3 /drivers/net/phy | |
parent | ede16ea32da7a37f892bf63dcb43c16118ba39d6 (diff) | |
download | u-boot-imx-d7fb9bcfb29a1cbdbda7006658e76c2d9da0f66f.zip u-boot-imx-d7fb9bcfb29a1cbdbda7006658e76c2d9da0f66f.tar.gz u-boot-imx-d7fb9bcfb29a1cbdbda7006658e76c2d9da0f66f.tar.bz2 |
Fix compile warnings for const correctness
Commit 6e37b1a3a25004d3df5867de49fff6b3fc9c4f04 modifies several net calls
to take a (const char *) parameter instead of (char *), but in some cases
the modified functions call other functions taking (char *). The end result
is warnings about discarding the const qualifier.
This patch fixes these other function signatures.
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/miiphybb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/phy/miiphybb.c b/drivers/net/phy/miiphybb.c index 2768c75..1045cf1 100644 --- a/drivers/net/phy/miiphybb.c +++ b/drivers/net/phy/miiphybb.c @@ -143,7 +143,7 @@ void bb_miiphy_init(void) } } -static inline struct bb_miiphy_bus *bb_miiphy_getbus(char *devname) +static inline struct bb_miiphy_bus *bb_miiphy_getbus(const char *devname) { #ifdef CONFIG_BITBANGMII_MULTI int i; @@ -246,7 +246,7 @@ static void miiphy_pre(struct bb_miiphy_bus *bus, char read, * Returns: * 0 on success */ -int bb_miiphy_read(char *devname, unsigned char addr, +int bb_miiphy_read(const char *devname, unsigned char addr, unsigned char reg, unsigned short *value) { short rdreg; /* register working value */ @@ -327,7 +327,7 @@ int bb_miiphy_read(char *devname, unsigned char addr, * Returns: * 0 on success */ -int bb_miiphy_write (char *devname, unsigned char addr, +int bb_miiphy_write (const char *devname, unsigned char addr, unsigned char reg, unsigned short value) { struct bb_miiphy_bus *bus; |