]> asedeno.scripts.mit.edu Git - linux.git/commit
platform/x86: wmi: Turn WMI into a bus driver
authorAndy Lutomirski <luto@kernel.org>
Wed, 25 Nov 2015 03:49:23 +0000 (19:49 -0800)
committerDarren Hart (VMware) <dvhart@infradead.org>
Tue, 6 Jun 2017 17:15:18 +0000 (10:15 -0700)
commit844af950da946cfab227a04b950614da04cb6275
tree4bb4e0aa002cc1566cfc08b87ec274c094b06bbe
parentb0e86302973d9e710c722a8436cc7e099d2a5b0d
platform/x86: wmi: Turn WMI into a bus driver

WMI is logically a bus: the WMI driver binds to an ACPI node (or
more than one), and each instance of the WMI driver enumerates its
children and hopes that drivers will attach to the children that are
useful.

This patch gives WMI a driver model bus type and the ability to
match to drivers. The bus itself is a device in the new "wmi_bus"
class, and all of the individual WMI devices are slotted into the
device hierarchy correctly.

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
include/linux/wmi.h [new file with mode: 0644]