]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: of_mdio: factor out code to parse a phy's 'reg' property
authorDaniel Mack <zonque@gmail.com>
Sat, 24 May 2014 07:34:25 +0000 (09:34 +0200)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:17:35 +0000 (21:17 -0600)
commit5ba6498d5d245a85eec64a49349b34ff12679977
tree9e94b9c6df1b5f9ba50d0201a3764e11b7d08e33
parent3b9adda4177e06a9bd77718db056149fea23a376
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: Daniel Mack <zonque@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/of/of_mdio.c