summaryrefslogtreecommitdiffstats
path: root/include/linux/wmi.h
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2015-11-25 18:19:26 -0800
committerDarren Hart (VMware) <dvhart@infradead.org>2017-06-06 10:15:19 -0700
commit56a370259db4f6204d3514431d1629e0a7135b53 (patch)
tree6bbaf67f2f3b01b6202b2500b9af226575a689eb /include/linux/wmi.h
parent1686f5444546c3b53547aa8736afcf05833ed31a (diff)
downloadlinux-56a370259db4f6204d3514431d1629e0a7135b53.tar.gz
linux-56a370259db4f6204d3514431d1629e0a7135b53.tar.bz2
linux-56a370259db4f6204d3514431d1629e0a7135b53.zip
platform/x86: wmi: Add a new interface to read block data
wmi_query_block is unnecessarily indirect. Add a straightforward method for wmi bus drivers to use to read block data. Signed-off-by: Andy Lutomirski <luto@kernel.org> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Mario Limonciello <mario_limonciello@dell.com> Cc: Pali Rohár <pali.rohar@gmail.com> Cc: linux-kernel@vger.kernel.org Cc: platform-driver-x86@vger.kernel.org Cc: linux-acpi@vger.kernel.org Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'include/linux/wmi.h')
-rw-r--r--include/linux/wmi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/wmi.h b/include/linux/wmi.h
index c6eedfd94e7d..0ab254019488 100644
--- a/include/linux/wmi.h
+++ b/include/linux/wmi.h
@@ -29,6 +29,10 @@ struct wmi_device {
bool readable, writeable;
};
+/* Caller must kfree the result. */
+extern union acpi_object *wmidev_block_query(struct wmi_device *wdev,
+ u8 instance);
+
struct wmi_device_id {
const char *guid_string;
};