]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phy: realtek: get rid of magic number in rtlgen_read_status()
authorDaniel Golle <daniel@makrotopia.org>
Mon, 5 Jan 2026 16:39:26 +0000 (16:39 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 8 Jan 2026 12:18:26 +0000 (13:18 +0100)
commitd8489935f5979b72e73de585037fe6fde7088bc3
treef45a2306557d478bd814fd6cc2165f5e250eb5c6
parent1850ec20d6e71218c02329e5975591075dc972d3
net: phy: realtek: get rid of magic number in rtlgen_read_status()

Use newly introduced helper macros RTL822X_VND2_TO_PAGE and
RTL822X_VND2_TO_PAGE_REG to access RTL_VEND2_PHYSR register over Clause-22
paged access instead of using magic numbers.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/a53d4577335fdda4d363db9bc4bf614fd3a56c9b.1767630451.git.daniel@makrotopia.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/realtek/realtek_main.c