realtek: Use BIT(x) helper instead of manual shift
authorSven Eckelmann <[email protected]>
Sun, 23 Nov 2025 16:17:55 +0000 (17:17 +0100)
committerHauke Mehrtens <[email protected]>
Mon, 24 Nov 2025 23:28:50 +0000 (00:28 +0100)
commit583807806c5efe9e522d73f765e0af553bbc38ea
tree8f8adc3d9b3ee1a173e73f2009650c3e533a0a4a
parent70563e6aa2be0c133b31501a3aa0ea5aa56a3d9d
realtek: Use BIT(x) helper instead of manual shift

Instead of manually writing shift operations, it is preferred to
use BIT(b) or GENMASK(e, s).

Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20906
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl838x.h
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.h