ACPI: video: use .notify method instead of installing handler directly
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 7 Apr 2009 15:37:11 +0000 (15:37 +0000)
committerLen Brown <len.brown@intel.com>
Tue, 7 Apr 2009 20:26:57 +0000 (16:26 -0400)
commit7015558fca5ee82fc17227b61d88ddaa02d82242
tree253519cdfbcc62f1e8ffae6353ceb7d801f4322b
parent342d550db1bc0b879007a8cdb38645558e839680
ACPI: video: 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.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
CC: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/video.c