platform/x86: wmi: Split devices into types and add basic sysfs attributes
authorAndy Lutomirski <luto@kernel.org>
Wed, 25 Nov 2015 18:01:37 +0000 (10:01 -0800)
committerDarren Hart (VMware) <dvhart@infradead.org>
Tue, 6 Jun 2017 17:15:18 +0000 (10:15 -0700)
commitd79b10740210c6c686a9256b801e08f7679e04e2
tree018446309ad47fbf5fb8be6807b375fc56b2fcfa
parenta1c31bcd5772b13b39b028126fa9de918c36cf26
platform/x86: wmi: Split devices into types and add basic sysfs attributes

Divide the "data", "method" and "event" types. All devices get
"instance_count" and "expensive" attributes, data and method devices get
"object_id" attributes, and event devices get "notify_id" attributes.

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>
drivers/platform/x86/wmi.c