projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
serial: stm32x7: align compatible with kernel one
[oweals/u-boot.git]
/
drivers
/
net
/
mcfmii.c
diff --git
a/drivers/net/mcfmii.c
b/drivers/net/mcfmii.c
index 17a780c854d8fbb8f6f393bd50083d37a92fa7d9..103e36512291b30fad1b0329f35b9fe451d0f462 100644
(file)
--- a/
drivers/net/mcfmii.c
+++ b/
drivers/net/mcfmii.c
@@
-277,8
+277,7
@@
void __mii_init(void)
* Otherwise they hang in mii_send() !!! Sorry!
*/
* Otherwise they hang in mii_send() !!! Sorry!
*/
-int mcffec_miiphy_read(const char *devname, unsigned char addr, unsigned char reg,
- unsigned short *value)
+int mcffec_miiphy_read(struct mii_dev *bus, int addr, int devad, int reg)
{
short rdreg; /* register working value */
{
short rdreg; /* register working value */
@@
-287,28
+286,22
@@
int mcffec_miiphy_read(const char *devname, unsigned char addr, unsigned char re
#endif
rdreg = mii_send(mk_mii_read(addr, reg));
#endif
rdreg = mii_send(mk_mii_read(addr, reg));
- *value = rdreg;
-
#ifdef MII_DEBUG
#ifdef MII_DEBUG
- printf("0x%04x\n",
*value
);
+ printf("0x%04x\n",
rdreg
);
#endif
#endif
- return
0
;
+ return
rdreg
;
}
}
-int mcffec_miiphy_write(
const char *devname, unsigned char addr, unsigned char
reg,
- u
nsigned short
value)
+int mcffec_miiphy_write(
struct mii_dev *bus, int addr, int devad, int
reg,
+ u
16
value)
{
#ifdef MII_DEBUG
{
#ifdef MII_DEBUG
- printf("miiphy_write(0x%x) @ 0x%x =
", reg, addr
);
+ printf("miiphy_write(0x%x) @ 0x%x =
0x%04x\n", reg, addr, value
);
#endif
mii_send(mk_mii_write(addr, reg, value));
#endif
mii_send(mk_mii_write(addr, reg, value));
-#ifdef MII_DEBUG
- printf("0x%04x\n", value);
-#endif
-
return 0;
}
return 0;
}