net: dsa: microchip: update tag_ksz masks for KSZ9477 family
authorPieter Van Trappen <pieter.van.trappen@cern.ch>
Mon, 9 Sep 2024 13:42:59 +0000 (15:42 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Sep 2024 00:27:56 +0000 (17:27 -0700)
commit3f464b193d40e49299dcd087b10cc3b77cbbea68
tree7b994f13bfc674efef80e52b2263a522c9d3f853
parent97b1ebb1e27d71a34367f6401ddebbd837d076a9
net: dsa: microchip: update tag_ksz masks for KSZ9477 family

Remove magic number 7 by introducing a GENMASK macro instead.
Remove magic number 0x80 by using the BIT macro instead.

Signed-off-by: Pieter Van Trappen <pieter.van.trappen@cern.ch>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20240909134301.75448-1-vtpieter@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/tag_ksz.c