diff options
author | Wolfgang Denk <wd@denx.de> | 2011-12-07 08:35:14 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-12-07 08:35:14 +0100 |
commit | f915c9316cf1dd16a5ec4da02447656f200660f0 (patch) | |
tree | 1f05989613f907dd30a1fd2482bf84c3a4679af6 /include/miiphy.h | |
parent | ea45cb0adcf4baa8f939fea4c848f3e1906f19d9 (diff) | |
download | u-boot-imx-f915c9316cf1dd16a5ec4da02447656f200660f0.zip u-boot-imx-f915c9316cf1dd16a5ec4da02447656f200660f0.tar.gz u-boot-imx-f915c9316cf1dd16a5ec4da02447656f200660f0.tar.bz2 |
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>
Diffstat (limited to 'include/miiphy.h')
-rw-r--r-- | include/miiphy.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/miiphy.h b/include/miiphy.h index 7ce6d14..7e70cf8 100644 --- a/include/miiphy.h +++ b/include/miiphy.h @@ -42,14 +42,14 @@ struct legacy_mii_dev { 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); }; -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); -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); int miiphy_info(const char *devname, unsigned char addr, unsigned int *oui, unsigned char *model, unsigned char *rev); @@ -65,9 +65,9 @@ void miiphy_init(void); void miiphy_register(const char *devname, 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)); int miiphy_set_current_dev(const char *devname); const char *miiphy_get_current_dev(void); |