aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/dell-wmi-descriptor.h
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@dell.com>2017-11-01 14:25:27 -0500
committerDarren Hart (VMware) <dvhart@infradead.org>2017-11-03 16:33:58 -0700
commit92b8c540bce7b1662212dff35f503f5b1266725b (patch)
tree21e0a8e27544bfda4c8f1a3c9b627b438b443167 /drivers/platform/x86/dell-wmi-descriptor.h
parentplatform/x86: dell-wmi: don't check length returned (diff)
downloadlinux-dev-92b8c540bce7b1662212dff35f503f5b1266725b.tar.xz
linux-dev-92b8c540bce7b1662212dff35f503f5b1266725b.zip
platform/x86: dell-wmi-descriptor: split WMI descriptor into it's own driver
All communication on individual GUIDs should occur in separate drivers. Allowing a driver to communicate with the bus to another GUID is just a hack that discourages drivers to adopt the bus model. The information found from the WMI descriptor driver is now exported for use by other drivers. Signed-off-by: Mario Limonciello <mario.limonciello@dell.com> Reviewed-by: Edward O'Callaghan <quasisec@google.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'drivers/platform/x86/dell-wmi-descriptor.h')
-rw-r--r--drivers/platform/x86/dell-wmi-descriptor.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/platform/x86/dell-wmi-descriptor.h b/drivers/platform/x86/dell-wmi-descriptor.h
new file mode 100644
index 000000000000..5f7b69c2c83a
--- /dev/null
+++ b/drivers/platform/x86/dell-wmi-descriptor.h
@@ -0,0 +1,21 @@
+/*
+ * Dell WMI descriptor driver
+ *
+ * Copyright (c) 2017 Dell Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef _DELL_WMI_DESCRIPTOR_H_
+#define _DELL_WMI_DESCRIPTOR_H_
+
+#include <linux/wmi.h>
+
+#define DELL_WMI_DESCRIPTOR_GUID "8D9DDCBC-A997-11DA-B012-B622A1EF5492"
+
+bool dell_wmi_get_interface_version(u32 *version);
+bool dell_wmi_get_size(u32 *size);
+
+#endif