]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rust: platform: Add ACPI match table support to `Driver` trait
authorIgor Korotin <igor.korotin.linux@gmail.com>
Fri, 20 Jun 2025 15:43:34 +0000 (16:43 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Thu, 26 Jun 2025 21:26:15 +0000 (23:26 +0200)
commit8411e6f06a022679a642c236724944057b90e60e
tree85448639c13da89f0d8c91c70ed5c3a217a8b3b4
parentec3ef2175e16360605c7e1b409ceaa77be6521a8
rust: platform: Add ACPI match table support to `Driver` trait

Extend the `platform::Driver` trait to support ACPI device matching by
adding the `ACPI_ID_TABLE` constant.

This allows Rust platform drivers to define ACPI match tables alongside
their existing OF match tables. These changes mirror the existing OF
support and allow Rust platform drivers to match devices based on ACPI
identifiers.

Signed-off-by: Igor Korotin <igor.korotin.linux@gmail.com>
Link: https://lore.kernel.org/r/20250620154334.298320-1-igor.korotin.linux@gmail.com
[ Use 'LNUXBEEF' as ACPI ID. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/platform.rs