net: miiphybb: Fix short name length
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 25 Jan 2025 12:17:57 +0000 (13:17 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 29 Jan 2025 21:52:24 +0000 (22:52 +0100)
commitd624a3e9abcb363e647f9bb6d4ba03de39091416
tree7cb9e65d142830a337c389d650a3b55c9285c8b6
parent25f19f4158bcaa0cb85abb49e32c52b9a95201aa
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>
include/miiphy.h