realtek: Use MII_BMCR and BMCR_* constants from <linux/mii.h>
authorPascal Ernster <git@hardfalcon.net>
Sun, 4 Jun 2023 19:41:32 +0000 (21:41 +0200)
committerSander Vanheule <sander@svanheule.net>
Sat, 1 Jul 2023 18:25:48 +0000 (20:25 +0200)
commit8b2f654d4ca4db4204803c37610ed29a19198638
tree5526cb7bf0d62310e0dedaafd3045bb9804c4627
parentf24c9b9d863c2635e472e83028d28cc8d0a7c7c6
realtek: Use MII_BMCR and BMCR_* constants from <linux/mii.h>

Replace numerical values, BIT(x) and (1 << x) in
drivers/net/phy/rtl83xx-phy.c with constants from <linux/mii.h> to
improve code readability.

To make reviewing easier, this commit only addresses MII_BMCR and BMCR_*
constants.

Suggested-by: DENG Qingfang <dqfext@gmail.com>
Signed-off-by: Pascal Ernster <git@hardfalcon.net>
target/linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c