]> asedeno.scripts.mit.edu Git - linux.git/commit
platform/x86: wmi: Require query for data blocks, rename writable to setable
authorDarren Hart (VMware) <dvhart@infradead.org>
Sat, 20 May 2017 02:28:36 +0000 (19:28 -0700)
committerDarren Hart (VMware) <dvhart@infradead.org>
Tue, 6 Jun 2017 17:15:20 +0000 (10:15 -0700)
commitfd70da6a6267c91fbdda9c560f098cfd52fba00f
tree378c9c14573ce622164b455e5fb48c4a80b5cbea
parentf63019861cd1192e546397b13f926876a93450fd
platform/x86: wmi: Require query for data blocks, rename writable to setable

The Microsoft WMI documentation requires all data blocks to implement
the Query Control Method (WQxx). If we encounter a data block not
implementing this control method, issue a warning, and ignore the data
block. Remove the "readable" attribute as all data blocks must be
readable (query-able).

Be consistent with the language in the documentation, replace the
"writable" attribute with "setable".

Simplify (flatten) the control flow of wmi_create_device a bit while
we are updating it for the above changes.

Signed-off-by: Darren Hart (VMware) <dvhart@infradead.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>
drivers/platform/x86/wmi.c
include/linux/wmi.h