diff options
author | Bjorn Helgaas <bjorn.helgaas@hp.com> | 2009-03-30 17:48:18 +0000 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-04-05 02:25:07 -0400 |
commit | 373cfc360ec773be2f7615e59a19f3313255db7c (patch) | |
tree | 86c68db2a5f5b1b400bda46370353e109c9d5482 /drivers/acpi/acpica/dsinit.c | |
parent | 46ec8598fde74ba59703575c22a6fb0b6b151bb6 (diff) |
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 <bjorn.helgaas@hp.com>
Reviewed-by: Alex Chiang <achiang@hp.com>
CC: Alexey Starikovskiy <alexey.y.starikovskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/dsinit.c')
0 files changed, 0 insertions, 0 deletions