]> Gentwo Git Trees - linux/.git/commit
net: phy: micrel: Replace hardcoded pages with defines
authorHoratiu Vultur <horatiu.vultur@microchip.com>
Mon, 18 Aug 2025 07:51:20 +0000 (09:51 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 21 Aug 2025 08:42:30 +0000 (10:42 +0200)
commitd471793a9b67bbe3d7198ff695004190fd7b6bc7
tree64b300f34a9beec72682e98bf55015799429aae8
parenta0de636ed7a264a329c6a9c7d50727af02138536
net: phy: micrel: Replace hardcoded pages with defines

The functions lan_*_page_reg gets as a second parameter the page
where the register is. In all the functions the page was hardcoded.
Replace the hardcoded values with defines to make it more clear
what are those parameters.

Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://patch.msgid.link/20250818075121.1298170-4-horatiu.vultur@microchip.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/micrel.c