]> git.baikalelectronics.ru Git - kernel.git/commit
sony-laptop: generalise ACPI calls into SNC functions
authorMattia Dongili <malattia@linux.it>
Sat, 19 May 2012 13:35:46 +0000 (22:35 +0900)
committerMatthew Garrett <mjg@redhat.com>
Thu, 31 May 2012 18:29:34 +0000 (14:29 -0400)
commita181a423263f9d5f81711481fc80b56ff8cf7bb5
treedab3fe4766728955a659acbe19563ea11084da34
parent1bb2e200796b4b15f09539715a10edf8d549cc77
sony-laptop: generalise ACPI calls into SNC functions

All calls into the SNC device methods have zero or one arguments and
return an integer or a buffer (some functions go as far as returning an
integer _or_ a buffer depending on the input parameter...).
This allows simplifying a couple of code paths and prepares the field
for other users of functions returning buffers.

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