sony-laptop: cache handles and report them via sysfs
authorMattia Dongili <malattia@linux.it>
Sat, 19 Feb 2011 02:52:30 +0000 (11:52 +0900)
committerMatthew Garrett <mjg@redhat.com>
Mon, 28 Mar 2011 10:05:26 +0000 (06:05 -0400)
commit2a4f0c81adcd1f812a63bc9106be2fd26f437730
tree1b06beb94eb06631f0bedca6ac70eb6ec37ff51b
parent3672329c3642033286984313d05f4a5b57bd2da7
sony-laptop: cache handles and report them via sysfs

Avoid calling into acpi each time we need to lookup a method handle
and report the available handles to ease collection of information when
debugging issues. Also move initialization of the platform driver
earlier to allow adding files from other setup functions.

Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/sony-laptop.c