diff options
| author | Igor Korotin <[email protected]> | 2025-06-20 15:36:56 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2025-06-26 21:25:07 +0000 |
| commit | 0f549d25858dfef9decd0b99a82ff4bc9095a51f (patch) | |
| tree | 0922f6c80538f08a8cbc4162e7cbaef48d427461 /samples/rust/rust_driver_platform.rs | |
| parent | rust: acpi: add `acpi::DeviceId` abstraction (diff) | |
| download | kernel-0f549d25858dfef9decd0b99a82ff4bc9095a51f.tar.gz kernel-0f549d25858dfef9decd0b99a82ff4bc9095a51f.zip | |
rust: driver: Consolidate `Adapter::of_id_info` methods using `#[cfg]`
Refactor the `of_id_info` methods in the `Adapter` trait to reduce
duplication. Previously, the method had two versions selected
via `#[cfg(...)]` and `#[cfg(not(...))]`. This change merges them into a
single method by using `#[cfg]` blocks within the method body.
Suggested-by: Benno Lossin <[email protected]>
Signed-off-by: Igor Korotin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[ Fix clippy warning if #[cfg(not(CONFIG_OF))]; fix checkpatch.pl line
length warnings. - Danilo ]
Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'samples/rust/rust_driver_platform.rs')
0 files changed, 0 insertions, 0 deletions
