mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
platform/x86: wmi: Add new method wmidev_evaluate_method
Drivers properly using the wmibus can pass their wmi_device pointer rather than the GUID back to the WMI bus to evaluate the proper methods. Any "new" drivers added that use the WMI bus should use this rather than the old wmi_evaluate_method that would take the GUID. Signed-off-by: Mario Limonciello <mario.limonciello@dell.com> Reviewed-by: Edward O'Callaghan <quasisec@google.com> Reviewed-by: Pali Rohár <pali.rohar@gmail.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
This commit is contained in:
parent
f35a8efe2c
commit
722c856d46
2 changed files with 30 additions and 4 deletions
|
@ -26,6 +26,12 @@ struct wmi_device {
|
|||
bool setable;
|
||||
};
|
||||
|
||||
/* evaluate the ACPI method associated with this device */
|
||||
extern acpi_status wmidev_evaluate_method(struct wmi_device *wdev,
|
||||
u8 instance, u32 method_id,
|
||||
const struct acpi_buffer *in,
|
||||
struct acpi_buffer *out);
|
||||
|
||||
/* Caller must kfree the result. */
|
||||
extern union acpi_object *wmidev_block_query(struct wmi_device *wdev,
|
||||
u8 instance);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue