]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-meson8b: use FIELD_PREP instead of open-coding it
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Tue, 12 May 2020 21:10:58 +0000 (23:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 May 2020 19:23:13 +0000 (12:23 -0700)
commitacecf0357e6bfd5e54ed033869a0507e495861ad
tree7961509e9696937c805a5f227ab8912ae0069639
parent06cdb0fa208d83122a1eec6cb7c9e7a9809284f8
net: stmmac: dwmac-meson8b: use FIELD_PREP instead of open-coding it

Use FIELD_PREP() to shift a value to the correct offset based on a
bitmask instead of open-coding the logic.
No functional changes.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c