diff options
| author | Marek Vasut <[email protected]> | 2025-02-22 21:33:29 +0100 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2025-02-26 18:26:57 +0100 |
| commit | a23f9a786b010177839d6fe9f67c717f17f74368 (patch) | |
| tree | d74017635b6aa4fb67bc186fcdc887cf77200d5f /include | |
| parent | ed4ab7c5e0e9e85c369bb6f7f2f5316788102e2c (diff) | |
net: miiphybb: Drop name field from struct bb_miiphy_bus
The struct bb_miiphy_bus embeds struct struct mii_dev, which
already contains one copy of name field. Drop the duplicate
top level copy of name field.
The a38x code does static assignment of disparate names, use
snprintf(...) to fill in matching name in probe to avoid any
breakage.
Reviewed-by: Paul Barker <[email protected]>
Signed-off-by: Marek Vasut <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/miiphy.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/miiphy.h b/include/miiphy.h index 42300ee5386..efeff8ae70b 100644 --- a/include/miiphy.h +++ b/include/miiphy.h @@ -65,7 +65,6 @@ void mdio_list_devices(void); #define BB_MII_DEVNAME "bb_miiphy" struct bb_miiphy_bus { - char name[MDIO_NAME_LEN]; int (*mdio_active)(struct bb_miiphy_bus *bus); int (*mdio_tristate)(struct bb_miiphy_bus *bus); int (*set_mdio)(struct bb_miiphy_bus *bus, int v); |
