ACPI: button: cache hid/name/class pointers
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Wed, 8 Apr 2009 15:39:54 +0000 (15:39 +0000)
committerLen Brown <len.brown@intel.com>
Sat, 11 Apr 2009 04:36:40 +0000 (00:36 -0400)
commitbf04a77227db76f163bc2355ef4e176794987be2
treebd31c578e7759c8c9467204588c06a215e336f20
parent1bce81131c71064bc3163078f24545b839a31967
ACPI: button: cache hid/name/class pointers

This patch adds temporaries to cache the acpi_device_hid(),
acpi_device_name(), and acpi_device_class() pointers so we
don't have to clutter the code with so many uses of those
interfaces.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/button.c