xref: /linux/rust/helpers/acpi.c (revision 6b3f7af57881f6d6250c6dcc4d910fe8e855a607)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include <linux/acpi.h>
4 #include <acpi/acpi_bus.h>
5 
6 __rust_helper bool rust_helper_acpi_of_match_device(const struct acpi_device *adev,
7 						    const struct of_device_id *of_match_table,
8 						    const struct of_device_id **of_id)
9 {
10 	return acpi_of_match_device(adev, of_match_table, of_id);
11 }
12 
13 __rust_helper struct acpi_device *rust_helper_to_acpi_device_node(struct fwnode_handle *fwnode)
14 {
15 	return to_acpi_device_node(fwnode);
16 }
17