Revert "mii: miiphy register address width change"
This reverts commit 5c45a22b9203351a32aec4600514341b91175542.
It causes a lot of "incompatible pointer type" warnings for a large
number of Ethernet drivers, which are not really worth fixing
especially as this patch was only supposed to help the old,
deprecated miiphy API. Instead of adding more efforts to a lost case
we rather revert it.
Signed-off-by: Wolfgang Denk <wd@denx.de>
diff --git a/common/miiphyutil.c b/common/miiphyutil.c
index 88747b8..2cc23b4 100644
--- a/common/miiphyutil.c
+++ b/common/miiphyutil.c
@@ -106,9 +106,9 @@
*/
void miiphy_register(const char *name,
int (*read)(const char *devname, unsigned char addr,
- unsigned short reg, unsigned short *value),
+ unsigned char reg, unsigned short *value),
int (*write)(const char *devname, unsigned char addr,
- unsigned short reg, unsigned short value))
+ unsigned char reg, unsigned short value))
{
struct mii_dev *new_dev;
struct legacy_mii_dev *ldev;
@@ -287,7 +287,7 @@
* Returns:
* 0 on success
*/
-int miiphy_read(const char *devname, unsigned char addr, unsigned short reg,
+int miiphy_read(const char *devname, unsigned char addr, unsigned char reg,
unsigned short *value)
{
struct mii_dev *bus;
@@ -315,7 +315,7 @@
* Returns:
* 0 on success
*/
-int miiphy_write(const char *devname, unsigned char addr, unsigned short reg,
+int miiphy_write(const char *devname, unsigned char addr, unsigned char reg,
unsigned short value)
{
struct mii_dev *bus;