summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2025-01-25 13:17:57 +0100
committerMarek Vasut <[email protected]>2025-01-29 22:52:24 +0100
commitd624a3e9abcb363e647f9bb6d4ba03de39091416 (patch)
tree7cb9e65d142830a337c389d650a3b55c9285c8b6 /include
parent25f19f4158bcaa0cb85abb49e32c52b9a95201aa (diff)
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 <[email protected]> Signed-off-by: Marek Vasut <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/miiphy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/miiphy.h b/include/miiphy.h
index 2bb4f62ea76..1e6c7041fdc 100644
--- a/include/miiphy.h
+++ b/include/miiphy.h
@@ -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);