]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: pcs: xpcs: use FIELD_PREP() and FIELD_GET()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 4 Oct 2024 10:21:17 +0000 (11:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Oct 2024 11:13:11 +0000 (12:13 +0100)
commitf6818918106113e04796c4558cbd98d01e04f002
tree7828b4bed23254c76cdd40c65a438afd5d338140
parent7921d3e602fc89a36dbef5b46d307bed47396409
net: pcs: xpcs: use FIELD_PREP() and FIELD_GET()

Convert xpcs to use the bitfield macros rather than definining the
bitfield shifts and open-coding the insertion and extraction of these
bitfields.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pcs/pcs-xpcs.c
drivers/net/pcs/pcs-xpcs.h