]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: xilinx: axienet: Combine CR calculation
authorSean Anderson <sean.anderson@linux.dev>
Thu, 6 Feb 2025 20:10:33 +0000 (15:10 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 11 Feb 2025 02:53:39 +0000 (18:53 -0800)
commite76d1ea8cb18b6aa389a0d3202ffc63ed278215d
tree1da448dadf74f9d8573745242f2d9ccc3afd5626
parent848b09d53d923b4caee5491f57a5c5b22d81febc
net: xilinx: axienet: Combine CR calculation

Combine the common parts of the CR calculations for better code reuse.
While we're at it, simplify the code a bit.

Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed-by: Shannon Nelson <shannon.nelson@amd.com>
Link: https://patch.msgid.link/20250206201036.1516800-2-sean.anderson@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c