]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: net::phy represent DeviceId as transparent wrapper over mdio_device_id
authorFUJITA Tomonori <fujita.tomonori@gmail.com>
Fri, 11 Jul 2025 04:09:46 +0000 (13:09 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 16 Jul 2025 21:39:07 +0000 (23:39 +0200)
commitf65a3218fd92cbe3e00f25427e1c9255b8973b31
tree461433b89f81df733db1d3c5c55f878394520a5e
parent8d84b32075fb2d9bd95c7e47b165942411d74bba
rust: net::phy represent DeviceId as transparent wrapper over mdio_device_id

Refactor the DeviceId struct to be a #[repr(transparent)] wrapper
around the C struct bindings::mdio_device_id.

This refactoring is a preparation for enabling the PHY abstractions to
use the RawDeviceId trait.

Acked-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Trevor Gross <tmgross@umich.edu>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Link: https://lore.kernel.org/r/20250711040947.1252162-3-fujita.tomonori@gmail.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/net/phy.rs