]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
samples: rust: auxiliary: misc cleanup of ParentDriver::connect()
authorDanilo Krummrich <dakr@kernel.org>
Mon, 20 Oct 2025 22:34:29 +0000 (00:34 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 29 Oct 2025 17:29:32 +0000 (18:29 +0100)
commit710ac546883c2cae6e8e7b5dcf7757b8a49d75a1
tree1cd930a1f71e3b3c370a7d934778edc31c778976
parent675e514edd659b5cfc15eb70bd8abf53568947cc
samples: rust: auxiliary: misc cleanup of ParentDriver::connect()

In ParentDriver::connect() rename parent to dev, use it for the
dev_info!() call, call pdev.vendor_() directly in the print statement
and remove the unnecessary generic type of Result.

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
samples/rust/rust_driver_auxiliary.rs