]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: rtl930x: adjust patch application facilities
authorJonas Jelonek <jelonek.jonas@gmail.com>
Tue, 17 Mar 2026 21:21:59 +0000 (21:21 +0000)
committerRobert Marko <robimarko@gmail.com>
Thu, 26 Mar 2026 09:53:45 +0000 (10:53 +0100)
commit143407c6d3e5921e235b2bfbb18497e901b8317c
treee013e2c581ccc3b90d9d8e4f0299776b73e4baf5
parentd52f7a4ca5ec974f1f168f9d0d5f9f9cd3457674
realtek: pcs: rtl930x: adjust patch application facilities

Change how patches are applied to reduce redundancy and make the code
more readable. Define a generic function that applies any patch. Within
the RTL930x patch application, define a local macro that helps to get
rid of repeated even/odd checks. While making the code cleaner, it is
also a preparation for further refactoring here.

This adds a local helper macro intended to be only temporary but keeps
the style of the code clean by avoiding a lot of if-else clauses.

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