]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
platform/x86: wmi: Incorporate acpi_install_notify_handler
authorAndy Lutomirski <luto@kernel.org>
Thu, 26 Nov 2015 01:33:25 +0000 (17:33 -0800)
committerDarren Hart (VMware) <dvhart@infradead.org>
Tue, 6 Jun 2017 17:15:19 +0000 (10:15 -0700)
commit1686f5444546c3b53547aa8736afcf05833ed31a
treed315f2b7eb2bc3f91ffcc2add36dc6db7949b62f
parent6ee50aaa9a20c7c11c964c249440857ab58ece36
platform/x86: wmi: Incorporate acpi_install_notify_handler

As a platform driver, acpi_driver.notify will not be available,
so use acpi_install_notify_handler as we will be converting to a
platform driver.

This gives event drivers a simple way to handle events. It
also seems closer to what the Windows docs suggest that Windows
does: it sounds like, in Windows, the mapper is responsible for
called _WED before dispatching to the subdriver.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
[dvhart: merge two development commits and update commit message]
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