]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: rtl930x: use param instead of register read
authorJonas Jelonek <jelonek.jonas@gmail.com>
Thu, 5 Mar 2026 22:01:19 +0000 (22:01 +0000)
committerRobert Marko <robimarko@gmail.com>
Sat, 21 Mar 2026 22:06:10 +0000 (23:06 +0100)
commit1707475f996698a39b0815610f0e4e9f2215819e
treee0be2c7119586a0eb2045fe7fa4c13d6c9e8f189
parent52cd822b5d2412a6a0db1ec4bb3b27acf173926f
realtek: pcs: rtl930x: use param instead of register read

Instead of performing a dedicated register read we can rely on the mode
that is passed via a parameter to the function. The code flow ensures
that this is the same value in this place.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/22450
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/pcs/pcs-rtl-otto.c