ACPI: button: use Linux style for getting driver_data
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Wed, 8 Apr 2009 15:39:49 +0000 (15:39 +0000)
committerLen Brown <len.brown@intel.com>
Sat, 11 Apr 2009 04:36:40 +0000 (00:36 -0400)
commit1bce81131c71064bc3163078f24545b839a31967
treee11d1c2f70accf396c878d61796d55d143aedb54
parente2fb9754d27513918a4936e8cbaad50ff56cfd3d
ACPI: button: use Linux style for getting driver_data

It's typical and slightly more compact to look up the driver_data
structure by initializing the automatic variable at its definition.

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