]> git.baikalelectronics.ru Git - kernel.git/commit
net: mdio: add helpers to extract clause 45 regad and devad fields
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 4 Jan 2022 12:07:00 +0000 (12:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jan 2022 11:22:17 +0000 (11:22 +0000)
commit1d3e9e4bdd44d417f5e277d60c2dcf020e99352c
tree8c98660981b7d2a92fc82d1a93553afe098d9c71
parentec253735281fb093484a9d8c10549f3b4b6b1043
net: mdio: add helpers to extract clause 45 regad and devad fields

Add a couple of helpers and definitions to extract the clause 45 regad
and devad fields from the regnum passed into MDIO drivers.

Tested-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/mdio.h