mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
net: miiphybb: Fix short name length
Multiple drivers copy the MDIO instance name from struct mii_phy to struct bb_miiphy_bus, but the name field in these two structs have different lengths, the bb_miiphy_bus one is 16 bytes, the source one is 32 bytes. Make sure these two lengths are always synchronized, use MDIO_NAME_LEN for both. Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
This commit is contained in:
@@ -64,7 +64,7 @@ void mdio_list_devices(void);
|
||||
#define BB_MII_DEVNAME "bb_miiphy"
|
||||
|
||||
struct bb_miiphy_bus {
|
||||
char name[16];
|
||||
char name[MDIO_NAME_LEN];
|
||||
int (*init)(struct bb_miiphy_bus *bus);
|
||||
int (*mdio_active)(struct bb_miiphy_bus *bus);
|
||||
int (*mdio_tristate)(struct bb_miiphy_bus *bus);
|
||||
|
||||
Reference in New Issue
Block a user