diff options
author | Andy Lutomirski <luto@kernel.org> | 2015-11-25 14:03:43 -0800 |
---|---|---|
committer | Darren Hart (VMware) <dvhart@infradead.org> | 2017-06-06 10:15:18 -0700 |
commit | d4fc91adfde11c41295d1cf001bdbec5d6879016 (patch) | |
tree | 07ed6594b7ae696a3bc3e0b5a059bf9f624d5365 /include | |
parent | d79b10740210c6c686a9256b801e08f7679e04e2 (diff) | |
download | linux-d4fc91adfde11c41295d1cf001bdbec5d6879016.tar.bz2 |
platform/x86: wmi: Probe data objects for read and write capabilities
The Dell XPS 13 9350 has one RW data object, one RO data object, and one
totally inaccessible data object. Check for the existence of the
accessor methods and report in sysfs.
The docs also permit WQxx getters for single-instance objects to
take no parameters. Probe for that as well to avoid ACPICA warnings
about mismatched signatures.
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')
-rw-r--r-- | include/linux/wmi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/wmi.h b/include/linux/wmi.h index 29ed34b4dae1..53095006821e 100644 --- a/include/linux/wmi.h +++ b/include/linux/wmi.h @@ -21,6 +21,12 @@ struct wmi_device { struct device dev; + + /* + * These are true for data objects that support reads and writes, + * respectively. + */ + bool readable, writeable; }; struct wmi_device_id { |