]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: macb: Replace open-coded device config retrieval with of_device_get_match_data()
authorKevin Hao <haokexin@gmail.com>
Sat, 17 Jan 2026 01:46:18 +0000 (09:46 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 Jan 2026 02:42:37 +0000 (18:42 -0800)
commit1be080b78fd37fffe27b15edf19a3ff1b3867fe4
treec79595f8751019c5783a32a60510a7efc6e43167
parent6406fc709ace081575de2a8a7eee12e63d4c96c6
net: macb: Replace open-coded device config retrieval with of_device_get_match_data()

Use of_device_get_match_data() to replace the open-coded method for
obtaining the device config.

Additionally, adjust the ordering of local variables to ensure
compatibility with RCS.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260117-macb-v1-1-f092092d8c91@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c