• A
    platform/x86: wmi: Turn WMI into a bus driver · 844af950
    Andy Lutomirski 提交于
    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: NAndy 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: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
    Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
    844af950
wmi.c 23.3 KB