Skip to content
Commit 8f838288 authored by Daniel Mack's avatar Daniel Mack Committed by David S. Miller
Browse files

net: of_mdio: factor out code to parse a phy's 'reg' property



Factor out some logic into of_mdio_parse_addr() so it can be reused
later. While at it, use of_property_read_u32() rather than open-coding
the same logic again.

Signed-off-by: default avatarDaniel Mack <zonque@gmail.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6623b419
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment