diff options
author | Eric Woudstra <ericwouds@gmail.com> | 2024-04-09 09:30:14 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-12 10:18:18 +0100 |
commit | 2e4ea707c7e04eb83e58c43e0e744bbdf6b23ff2 (patch) | |
tree | 3e007a0669924d19e467327c93b1395490caf610 /net/unix/af_unix.c | |
parent | ad5ce743a6b0329f642d80be50ef7b534e908fba (diff) | |
download | linux-2e4ea707c7e04eb83e58c43e0e744bbdf6b23ff2.tar.gz linux-2e4ea707c7e04eb83e58c43e0e744bbdf6b23ff2.tar.bz2 linux-2e4ea707c7e04eb83e58c43e0e744bbdf6b23ff2.zip |
net: phy: realtek: Change rtlgen_get_speed() to rtlgen_decode_speed()
The value of the register to determine the speed, is retrieved
differently when using Clause 45 only. To use the rtlgen_get_speed()
function in this case, pass the value of the register as argument to
rtlgen_get_speed(). The function would then always return 0, so change it
to void. A better name for this function now is rtlgen_decode_speed().
Replace a call to genphy_read_status() followed by rtlgen_get_speed()
with a call to rtlgen_read_status() in rtl822x_read_status().
Add reading speed to rtl822x_c45_read_status().
Signed-off-by: Eric Woudstra <ericwouds@gmail.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions