commit | b6c2c383cdc3c958b6eb072a355759c9e76e427d | [log] [tgz] |
---|---|---|
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | Sat Feb 22 21:33:28 2025 +0100 |
committer | Marek Vasut <marek.vasut+renesas@mailbox.org> | Wed Feb 26 18:26:57 2025 +0100 |
tree | afa67bbf08d41af61a7a0b5771a2b965d9cf644b | |
parent | a618552cec04f3bbc18473118abcf0c0db88711d [diff] |
net: miiphybb: Use container_of() in bb_miiphy_getbus() Replace the name based look up in bb_miiphy_getbus() with trivial container_of() call. This works because the struct bb_miiphy_bus always embeds the matching struct mii_dev . This also makes the code much simpler and more efficient. Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>