From: Bjorn Helgaas Date: Mon, 30 Mar 2009 17:48:18 +0000 (+0000) Subject: ACPI: button: use .notify method instead of installing handler directly X-Git-Tag: v2.6.30-rc1~199^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=373cfc360ec773be2f7615e59a19f3313255db7c;p=pandora-kernel.git ACPI: button: use .notify method instead of installing handler directly This patch adds a .notify() method. The presence of .notify() causes Linux/ACPI to manage event handlers and notify handlers on our behalf, so we don't have to install and remove them ourselves. Note that events from fixed hardware buttons now show up as a special notify event, so to preserve user-space backward compatibility, we convert that back to ACPI_BUTTON_NOTIFY_STATUS. Signed-off-by: Bjorn Helgaas Reviewed-by: Alex Chiang CC: Alexey Starikovskiy Signed-off-by: Len Brown --- Reading git-diff-tree failed