diff options
| author | Igor Korotin <[email protected]> | 2025-06-20 15:41:24 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2025-06-26 21:26:15 +0000 |
| commit | ec3ef2175e16360605c7e1b409ceaa77be6521a8 (patch) | |
| tree | 63ac3618dbe260afc815aa629223b80e9b6e8bb4 /samples/rust/rust_driver_platform.rs | |
| parent | rust: driver: Add ACPI id table support to Adapter trait (diff) | |
| download | kernel-ec3ef2175e16360605c7e1b409ceaa77be6521a8.tar.gz kernel-ec3ef2175e16360605c7e1b409ceaa77be6521a8.zip | |
rust: platform: Set `OF_ID_TABLE` default to `None` in `Driver` trait
Provide a default value of `None` for `Driver::OF_ID_TABLE` to simplify
driver implementations.
Drivers that do not require OpenFirmware matching no longer need to
import the `of` module or define the constant explicitly.
This reduces unnecessary boilerplate and avoids pulling in unused
dependencies.
Signed-off-by: Igor Korotin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'samples/rust/rust_driver_platform.rs')
0 files changed, 0 insertions, 0 deletions
