summaryrefslogtreecommitdiff
path: root/include/linux/wmi.h
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2023-11-03 21:25:23 +0300
committerHans de Goede <hdegoede@redhat.com>2023-11-20 15:20:32 +0300
commitf25d34646bd01505a0989ca67bc9a37390cae755 (patch)
treedb94dcb9ddc7ed876abf334fc6b3c212641399c3 /include/linux/wmi.h
parentb85ea95d086471afb4ad062012a4d73cd328fa86 (diff)
downloadlinux-f25d34646bd01505a0989ca67bc9a37390cae755.tar.xz
platform/x86: wmi: Add wmidev_block_set()
Currently, WMI drivers have to use the deprecated GUID-based interface when setting data blocks. This prevents those drivers from fully moving away from this interface. Provide wmidev_block_set() so drivers using wmi_set_block() can fully migrate to the modern bus-based interface. Tested with a custom SSDT from the Intel Slim Bootloader project. Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20231103182526.3524-1-W_Armin@gmx.de Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'include/linux/wmi.h')
-rw-r--r--include/linux/wmi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/wmi.h b/include/linux/wmi.h
index 763bd382cf2d..207544968268 100644
--- a/include/linux/wmi.h
+++ b/include/linux/wmi.h
@@ -35,6 +35,8 @@ extern acpi_status wmidev_evaluate_method(struct wmi_device *wdev,
extern union acpi_object *wmidev_block_query(struct wmi_device *wdev,
u8 instance);
+acpi_status wmidev_block_set(struct wmi_device *wdev, u8 instance, const struct acpi_buffer *in);
+
u8 wmidev_instance_count(struct wmi_device *wdev);
extern int set_required_buffer_size(struct wmi_device *wdev, u64 length);