]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: acpi: add `acpi::DeviceId` abstraction
authorIgor Korotin <igor.korotin.linux@gmail.com>
Fri, 20 Jun 2025 15:24:25 +0000 (16:24 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Thu, 26 Jun 2025 21:22:17 +0000 (23:22 +0200)
commita74931eb59cf6b914e1b9471d9abd4429176f6af
tree785de7ab6e42ea4cea021f5c12bd8237215b8e0c
parent9da36b9faed26f634c9f04a0f2cf7625c08f5d65
rust: acpi: add `acpi::DeviceId` abstraction

`acpi::DeviceId` is an abstraction around `struct acpi_device_id`.

Enable drivers to build ACPI device ID tables, to be consumed by the
corresponding bus abstractions, such as platform or I2C.

Signed-off-by: Igor Korotin <igor.korotin.linux@gmail.com>
Acked-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20250620152425.285683-1-igor.korotin.linux@gmail.com
[ Always inline DeviceId::new() and use &'static CStr; slightly reword
  commit message. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
MAINTAINERS
rust/kernel/acpi.rs [new file with mode: 0644]
rust/kernel/lib.rs