staging: samsung-laptop: Extend samsung-laptop platform driver to support another...
commit988a29bf3dfb2bb9a85c21987e2cc63dadf523c3
authorIngmar Steen <iksteen@gmail.com>
Mon, 7 Feb 2011 13:32:31 +0000 (7 14:32 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Feb 2011 20:15:34 +0000 (9 12:15 -0800)
treef2ca99f1ce9445161afe1820cb7d592aca6b1e11
parentf94fdeaa58e54c41eb6a2d8b86585e858d44c88f
staging: samsung-laptop: Extend samsung-laptop platform driver to support another flavor of its platform BIOS.

There are currently two implementations of the Samsung BIOS that controls the rfkill
switch, backlight brightness / power and performance level. The samsung-laptop driver
implements the BIOS flavor with the SECLINUX signature, this patch implements talking
to the other BIOS with 'SwSmi@' signature. Both expose very similar functionality and
way of accessing the commands. The differences are mostly offsets, command identifiers
and some values.

This patch introduces a sabi_config structure that contains information on identifying
and accessing specific SABI flavors.

Signed-off-by: Ingmar Steen <iksteen@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/samsung-laptop/samsung-laptop.c