]> git.ipfire.org Git - thirdparty/linux.git/commit
net: dsa: yt921x: Use macros for MIB locations
authorDavid Yang <mmyangfl@gmail.com>
Wed, 26 Nov 2025 08:40:20 +0000 (16:40 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Nov 2025 01:55:54 +0000 (17:55 -0800)
commitfbce7b36c8c64b2bab68f2ec878b5aa48b6f0d75
treedbf0e31745204da6ec287b94a5dce63dae5fd907
parent510026a39849ae7066dce17343caba4550e2a977
net: dsa: yt921x: Use macros for MIB locations

Extract MIB constants into the header file to improve code style. This
patch will not change the behavior of the function.

Signed-off-by: David Yang <mmyangfl@gmail.com>
Link: https://patch.msgid.link/20251126084024.2843851-3-mmyangfl@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/yt921x.c
drivers/net/dsa/yt921x.h