diff options
| author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2026-03-05 13:42:42 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-03-07 02:39:09 +0300 |
| commit | 58bd0039002ba58019138608de4f2a3041ae0026 (patch) | |
| tree | b41cf36e07c85d7104c58206d6963f2289ba21e1 /scripts | |
| parent | 506f78f43c58094009b2d62ed0f8070bb4635954 (diff) | |
| download | linux-58bd0039002ba58019138608de4f2a3041ae0026.tar.xz | |
net: stmmac: mdio: convert field prep to use field_prep()
Convert the MDIO field preparation to use field_prep(), which removes
the need to store separate mask and shifts. Also convert the clk_csr
value using __ffs() to do the shift as we need to detect overflows
for this.
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Tested-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/E1vy6AE-0000000Btwv-1LM4@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
