]> git.karo-electronics.de Git - mv-sheeva.git/commit
samsung-laptop: add a small debugfs interface
authorCorentin Chary <corentincj@iksaif.net>
Sat, 26 Nov 2011 10:00:03 +0000 (11:00 +0100)
committerMatthew Garrett <mjg@redhat.com>
Tue, 20 Mar 2012 16:02:08 +0000 (12:02 -0400)
commit5b80fc40e5c53da2c69382c20cfc2ece19ece9ce
tree42080e2e731acd938bc56bc0000e6ca99cbab147
parent7e9607118b08bd4e1dae65d56e425e8de7f3da1c
samsung-laptop: add a small debugfs interface

This allow to call arbitrary sabi commands wihout
modifying the driver at all. For example, setting
the keyboard backlight brightness to 5 using debugfs
interface can be done like that:

 ; Set the command
 echo 0x78 > command
 ; Set the data
 echo 0x0582 > d0
 ; Fill the rest with 0
 echo 0 > d1
 echo 0 > d2
 echo 0 > d3
 ; And issue the command
 cat call

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/samsung-laptop.c