summaryrefslogtreecommitdiff
path: root/include/linux/wmi.h
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@dell.com>2017-11-01 14:25:23 -0500
committerDarren Hart (VMware) <dvhart@infradead.org>2017-11-03 16:33:57 -0700
commit722c856d46c6ca74a246b54a72f14751fec01aae (patch)
tree956a8cb207cc0ad028fa09d85f562efbeafe58c5 /include/linux/wmi.h
parentf35a8efe2c34496eaf45f8a9bd5bb7625d34bb5c (diff)
downloadlwn-722c856d46c6ca74a246b54a72f14751fec01aae.tar.gz
lwn-722c856d46c6ca74a246b54a72f14751fec01aae.zip
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>
Diffstat (limited to 'include/linux/wmi.h')
-rw-r--r--include/linux/wmi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/wmi.h b/include/linux/wmi.h
index cd0d7734dc49..2cd10c3b89e9 100644
--- a/include/linux/wmi.h
+++ b/include/linux/wmi.h
@@ -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);