• Andy Lutomirski's avatar
    platform/x86: wmi: Turn WMI into a bus driver · 844af950
    Andy Lutomirski authored
    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
    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: default avatarAndy 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: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Signed-off-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>