diff options
| author | Markus Probst <markus.probst@posteo.de> | 2026-04-27 20:55:57 +0300 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-04-28 21:28:28 +0300 |
| commit | 2690d071584ed8f488f2336f93272817b6999484 (patch) | |
| tree | 4a8d3efabcd9e0f57e39677f62eaf1126699fb01 /include/linux/timerqueue.h | |
| parent | a7cc262a11354ab104b8e55c21200d099d141bc7 (diff) | |
| download | linux-2690d071584ed8f488f2336f93272817b6999484.tar.xz | |
rust: ACPI: fix missing match data for PRP0001
Export `acpi_of_match_device` function and use it to match the of device
table against ACPI PRP0001 in Rust.
This fixes id_info being None on ACPI PRP0001 devices.
Using `device_get_match_data` is not possible, because Rust stores an
index in the of device id instead of a data pointer. This was done this
way to provide a convenient and obvious API for drivers, which can be
evaluated in const context without the use of any unstable language
features.
Fixes: 7a718a1f26d1 ("rust: driver: implement `Adapter`")
Signed-off-by: Markus Probst <markus.probst@posteo.de>
Acked-by: Rafael J. Wysocki (Intel) <rafael@kernel.org> # ACPI
Link: https://patch.msgid.link/20260427-rust_acpi_prp0001-v6-1-6119b2a66183@posteo.de
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
